Parent: [d0f7fb] (diff)

Child: [1aff86] (diff)

Download this file

makesrcdist.sh    65 lines (47 with data), 1.4 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/sh
#set -x
# A shell-script to make a recoll distribution:
TAR=/usr/bin/tar
targetdir=${targetdir-/tmp}
dotag=${dotag-yes}
if test ! -d qtgui;then
echo "Should be executed in the master recoll directory"
exit 1
fi
version=`cat VERSION`
versionforcvs=`echo $version | sed -e 's/\./_/g'`
topdir=$targetdir/recoll-$version
if test ! -d $topdir ; then
mkdir $topdir || exit 1
else
echo "Removing everything under $topdir Ok ? (y/n)"
read rep
if test $rep = 'y';then
rm -rf $topdir/*
fi
fi
chmod +w README INSTALL
cat <<EOF > README
A more complete version of this document can be found at http://www.recoll.org
EOF
cat <<EOF > INSTALL
A more complete version of this document can be found at http://www.recoll.org
EOF
echo "Dumping html documentation to text files"
RECOLLDOC=${RECOLLDOC:=$HOME/projets/lesbonscomptes/recoll}
links -dump ${RECOLLDOC}/index.html >> README
links -dump ${RECOLLDOC}/credits.html >> README
links -dump ${RECOLLDOC}/usermanual.html >> README
links -dump ${RECOLLDOC}/installation.html >> INSTALL
cvs commit -m '' README INSTALL
# Clean up this dir and copy the dist-specific files
make clean
yes | clean.O
$TAR chfX - excludefile . | (cd $topdir;$TAR xf -)
CVSTAG="RECOLL-$versionforcvs"
[ $dotag = "yes" ] && cvs tag -F $CVSTAG .
out=recoll-$version.tar.gz
(cd $targetdir ; \
$TAR chf - recoll-$version | \
gzip > $out)
echo "$targetdir/$out created"