diff --git a/src/Makefile b/src/Makefile index f9a094c6..f8f00d4b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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 diff --git a/src/makestaticdist.sh b/src/makestaticdist.sh new file mode 100644 index 00000000..33c33f6e --- /dev/null +++ b/src/makestaticdist.sh @@ -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