2006-08-20 20:24:39 +04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ -z $1 ]; then
|
|
|
|
echo please specify a tmp directory
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd $1
|
|
|
|
if [ $? -gt 0 ]; then
|
|
|
|
echo could not chdir to $1
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -rf release
|
|
|
|
mkdir -p release
|
|
|
|
cd release
|
|
|
|
|
2006-08-21 19:14:47 +04:00
|
|
|
svn co https://svn.sourceforge.net/svnroot/mosesdecoder/trunk mosesdecoder
|
|
|
|
|
|
|
|
cd mosesdecoder
|
2006-08-20 20:24:39 +04:00
|
|
|
base=`pwd`
|
2006-08-21 18:24:09 +04:00
|
|
|
|
2006-08-20 20:24:39 +04:00
|
|
|
for dir in moses moses-cmd irstlm; do
|
|
|
|
cd $base
|
|
|
|
cd $dir
|
|
|
|
aclocal
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
rm -rf aclocal.m4 autom4te.cache/
|
|
|
|
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 -f regenerate-makefiles.sh
|
|
|
|
rm -rf config
|
2006-08-21 18:24:09 +04:00
|
|
|
find . -type d | grep .svn | xargs rm -rf
|
|
|
|
rm -rf .*
|
|
|
|
rm -f acsite*
|
2006-08-20 20:24:39 +04:00
|
|
|
done
|
|
|
|
|
2006-08-21 18:24:09 +04:00
|
|
|
cd $base
|
2006-08-21 19:14:47 +04:00
|
|
|
tar cf moses-release.tar moses/ moses-cmd/ irstlm/ BUILD-INSTRUCTIONS
|
2006-08-21 18:24:09 +04:00
|
|
|
gzip moses-release.tar
|
|
|
|
|
2006-08-21 18:50:36 +04:00
|
|
|
echo tar-ball: $base/moses-release.tar
|