static bin dists

This commit is contained in:
dockes 2005-10-21 14:11:52 +00:00
parent a5f9ef6d55
commit 0e387debbe
2 changed files with 50 additions and 1 deletions

View File

@ -10,8 +10,10 @@ mk/sysconf:
static:
rm -f index/recollindex qtgui/recoll
cd lib; $(MAKE)
cd bincimapmime; $(MAKE)
cd index; $(MAKE) BSTATIC=-Wl,-Bstatic BDYNAMIC=-Wl,-Bdynamic
cd qtgui; $(MAKE) BSTATIC=-Wl,-Bstatic BDYNAMIC=-Wl,-Bdynamic
cd qtgui; qmake recoll.pro; $(MAKE) BSTATIC=-Wl,-Bstatic BDYNAMIC=-Wl,-Bdynamic
clean:
cd common; $(MAKE) clean

47
src/makestaticdist.sh Normal file
View File

@ -0,0 +1,47 @@
#!/bin/sh
#set -x
# A shell-script to make a recoll static binary distribution:
TAR=/usr/bin/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