Switch to unified view

a/src/makesrcdist.sh b/src/makesrcdist.sh
1
#!/bin/sh
1
#!/bin/sh
2
# @(#$Id: makesrcdist.sh,v 1.16 2008-11-21 16:43:42 dockes Exp $  (C) 2005 J.F.Dockes
2
# @(#$Id: makesrcdist.sh,v 1.16 2008-11-21 16:43:42 dockes Exp $  (C) 2005 J.F.Dockes
3
# A shell-script to make a recoll source distribution
3
# A shell-script to make a recoll source distribution
4
4
5
fatal()
6
{
7
  echo $*
8
  exit 1
9
}
5
#set -x
10
#set -x
6
11
7
TAR=/usr/bin/tar
12
TAR=/usr/bin/tar
8
 
13
SVNREPOS=svn+ssh://y/home/subversion/recoll/
14
15
version=`cat VERSION`
16
versionforcvs=`echo $version | sed -e 's/\./_/g'`
17
18
editedfiles=`svn status | egrep -v '^\?'`
19
if test ! -z "$editedfiles"; then
20
  fatal  "Edited files exist: " $editedfiles
21
fi
22
23
tagtop() {
24
  (cd ..; svn copy -m "Release $version tagged" . $SVNREPOS/tags/$1) \
25
          || fatal tag failed
26
}
27
9
targetdir=${targetdir-/tmp}
28
targetdir=${targetdir-/tmp}
10
dotag=${dotag-yes}
29
dotag=${dotag-yes}
11
30
12
if test ! -d qtgui;then
31
if test ! -d qtgui;then
13
    echo "Should be executed in the master recoll directory"
32
    echo "Should be executed in the master recoll directory"
14
    exit 1
33
    exit 1
15
fi
34
fi
16
17
version=`cat VERSION`
18
versionforcvs=`echo $version | sed -e 's/\./_/g'`
19
35
20
topdir=$targetdir/recoll-$version
36
topdir=$targetdir/recoll-$version
21
if test ! -d $topdir ; then
37
if test ! -d $topdir ; then
22
    mkdir $topdir || exit 1
38
    mkdir $topdir || exit 1
23
else 
39
else 
...
...
54
links -dump ${RECOLLDOC}/rcl.install.html >> INSTALL
70
links -dump ${RECOLLDOC}/rcl.install.html >> INSTALL
55
links -dump ${RECOLLDOC}/rcl.install.external.html >> INSTALL
71
links -dump ${RECOLLDOC}/rcl.install.external.html >> INSTALL
56
links -dump ${RECOLLDOC}/rcl.install.building.html >> INSTALL
72
links -dump ${RECOLLDOC}/rcl.install.building.html >> INSTALL
57
links -dump ${RECOLLDOC}/rcl.install.config.html >> INSTALL
73
links -dump ${RECOLLDOC}/rcl.install.config.html >> INSTALL
58
74
59
cvs commit -m '' README INSTALL
75
svn commit -m '' README INSTALL
60
76
61
# Clean up this dir and copy the dist-specific files 
77
# Clean up this dir and copy the dist-specific files 
62
make distclean
78
make distclean
63
yes | clean.O
79
yes | clean.O
64
rm -f lib/*.dep
80
rm -f lib/*.dep
...
...
74
    < $topdir/doc/user/usermanual.html > $topdir/doc/user/u1.html
90
    < $topdir/doc/user/usermanual.html > $topdir/doc/user/u1.html
75
diff $topdir/doc/user/u1.html $topdir/doc/user/usermanual.html
91
diff $topdir/doc/user/u1.html $topdir/doc/user/usermanual.html
76
mv -f $topdir/doc/user/u1.html $topdir/doc/user/usermanual.html
92
mv -f $topdir/doc/user/u1.html $topdir/doc/user/usermanual.html
77
93
78
# We tag .. as there is the 'packaging/' directory in there
94
# We tag .. as there is the 'packaging/' directory in there
79
CVSTAG="RECOLL_$versionforcvs"
95
TAG="RECOLL_$versionforcvs"
80
[ $dotag = "yes" ] && (cd ..;cvs tag -F $CVSTAG .)
96
#[ $dotag = "yes" ] && (cd ..;cvs tag -F $CVSTAG .)
97
[ $dotag = "yes" ] && tagtop $TAG
81
98
82
# Can't now put ./Makefile in excludefile, gets ignored everywhere. So delete
99
# Can't now put ./Makefile in excludefile, gets ignored everywhere. So delete
83
# the top Makefile here (its' output by configure on the target system):
100
# the top Makefile here (its' output by configure on the target system):
84
rm -f $topdir/Makefile
101
rm -f $topdir/Makefile
85
102