Switch to unified view

a/src/makestaticdist.sh b/src/makestaticdist.sh
1
#!/bin/sh
1
#!/bin/sh
2
#set -x
2
#set -x
3
# A shell-script to make a recoll static binary distribution:
3
# A shell-script to make a recoll static binary distribution:
4
5
fatal()
6
{
7
    echo $*;exit 1
8
}
4
9
5
TAR=tar
10
TAR=tar
6
 
11
 
7
targetdir=${targetdir-/tmp}
12
targetdir=${targetdir-/tmp}
8
13
...
...
12
fi
17
fi
13
18
14
version=`cat VERSION`
19
version=`cat VERSION`
15
sys=`uname -s`
20
sys=`uname -s`
16
sysrel=`uname -r`
21
sysrel=`uname -r`
22
23
qtguiassign=`egrep '^QTGUI=' recollinstall`
24
stripassign=`egrep '^STRIP=' recollinstall`
25
test ! -z "$qtguiassign" || fatal "Can't find qt version"
26
test ! -z "$stripassign" || fatal "Can't find strip string"
27
eval $qtguiassign
28
eval $stripassign
29
echo "QTGUI: " $QTGUI "STRIP: " $STRIP
17
30
18
topdirsimple=recoll-${version}-${sys}-${sysrel}
31
topdirsimple=recoll-${version}-${sys}-${sysrel}
19
topdir=$targetdir/$topdirsimple
32
topdir=$targetdir/$topdirsimple
20
33
21
tarfile=$targetdir/recoll-${version}-${sys}-${sysrel}.tgz
34
tarfile=$targetdir/recoll-${version}-${sys}-${sysrel}.tgz
...
...
28
    if test $rep = 'y';then
41
    if test $rep = 'y';then
29
        rm -rf $topdir/*
42
        rm -rf $topdir/*
30
    fi
43
    fi
31
fi
44
fi
32
45
46
rm -f index/recollindex ${QTGUI}/recoll
33
47
34
rm -f index/recollindex qtgui/recoll
35
make static || exit 1
48
make static || exit 1
36
strip index/recollindex qtgui/recoll
49
50
${STRIP} index/recollindex ${QTGUI}/recoll
37
51
38
files="COPYING README INSTALL VERSION Makefile recollinstall
52
files="COPYING README INSTALL VERSION Makefile recollinstall
39
filters desktop sampleconf doc/user doc/man
53
filters desktop sampleconf doc/user doc/man
40
index/recollindex index/rclmon.sh qtgui/recoll qtgui/i18n/*.qm 
54
index/recollindex index/rclmon.sh ${QTGUI}/recoll qtgui/i18n/*.qm 
41
qtgui/mtpics/*.png 
55
qtgui/mtpics/*.png 
42
desktop/recoll.png desktop/recoll-searchgui.desktop"
56
desktop/recoll.png desktop/recoll-searchgui.desktop"
43
57
44
$TAR chf - $files  | (cd $topdir; $TAR xf -)
58
$TAR chf - $files  | (cd $topdir; $TAR xf -)
45
59