Parent: [0e387d] (diff)

Child: [208550] (diff)

Download this file

makestaticdist.sh    48 lines (35 with data), 946 Bytes

 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
#!/bin/sh
#set -x
# A shell-script to make a recoll static binary distribution:
TAR=tar
targetdir=${targetdir-/tmp}
if test ! -d qtgui;then
echo "Should be executed in the master recoll directory"
exit 1
fi
version=`cat VERSION`
sys=`uname -s`
sysrel=`uname -r`
topdirsimple=recoll-${version}-${sys}-${sysrel}
topdir=$targetdir/$topdirsimple
tarfile=$targetdir/recoll-${version}-${sys}-${sysrel}.tgz
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
rm -f index/recollindex qtgui/recoll
make static || exit 1
strip index/recollindex qtgui/recoll
files='COPYING README INSTALL installrecoll
filters sampleconf
index/recollindex qtgui/recoll'
$TAR chf - $files | (cd $topdir; $TAR xf -)
(cd $targetdir ; \
$TAR chf - $topdirsimple | \
gzip > $tarfile)
echo $tarfile created