-
Notifications
You must be signed in to change notification settings - Fork 2
/
make-release-tarball.sh
executable file
·76 lines (62 loc) · 1.39 KB
/
make-release-tarball.sh
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/bash
if [ -z $1 ]; then
echo please specify a tmp directory
exit 1
fi
cd $1
topdir=`pwd`
if [ $? -gt 0 ]; then
echo could not chdir to $1
exit 1
fi
rm -rf release
mkdir -p release
cd release
svn co https://svn.sourceforge.net/svnroot/mosesdecoder/trunk mosesdecoder
cd mosesdecoder
base=`pwd`
aclocal
# add AM_MAINTAINER_MODE
perl -e '$c=0; while(<>) { print; $c++; if ($c==5) {print "AM_MAINTAINER_MODE\n"; } }' < configure.in > conf.tmp
mv conf.tmp configure.in
autoconf
automake
rm -f Makefile
rm -f stamp-h1
rm -f regenerate-makefiles.sh
rm -rf aclocal.m4 autom4te.cache/
find . -type d | grep .svn | xargs rm -rf
cd irstlm
aclocal
autoconf
automake
rm -f Makefile
rm -f stamp-h1
rm -f regenerate-makefiles.sh
rm -rf aclocal.m4 autom4te.cache/
cd ..
for dir in moses moses-cmd irstlm; do
cd $base
cd $dir
rm -f moses-cmd.vcproj
rm -f conf26031.sh
rm -f config.h
rm -f config.log
rm -f config.status
rm -f Makefile
rm -f stamp-h1
rm -f moses.sln
rm -f moses.vcproj
rm -rf Release
rm -rf ReleaseNBest/
rm -rf config
rm -rf .*
rm -f acsite*
done
cd $base
tar cf moses-release.tar moses/ moses-cmd/ irstlm/ BUILD-INSTRUCTIONS configure Makefile.in Makefile.am install-sh config.h.in depcomp
gzip moses-release.tar
mv moses-release.tar.gz $topdir/moses-release.tar.gz
cd $topdir
echo tar-ball: $topdir/moses-release.tar.gz
echo Don\'t forget to remove $topdir/release