mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-08 04:27:53 +03:00
fe74de6b44
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@786 1f5c12ca-751b-0410-a591-d2e778427230
53 lines
1011 B
Bash
Executable File
53 lines
1011 B
Bash
Executable File
#!/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
|
|
|
|
base=`pwd`
|
|
svn co https://svn.sourceforge.net/svnroot/mosesdecoder/trunk/moses
|
|
svn co https://svn.sourceforge.net/svnroot/mosesdecoder/trunk/moses-cmd
|
|
svn co https://svn.sourceforge.net/svnroot/mosesdecoder/trunk/irstlm
|
|
|
|
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
|
|
find . -type d | grep .svn | xargs rm -rf
|
|
rm -rf .*
|
|
rm -f acsite*
|
|
done
|
|
|
|
cd $base
|
|
tar cf moses-release.tar moses/ moses-cmd/ irstlm/
|
|
gzip moses-release.tar
|
|
|
|
echo tar-ball: $base/moses-release.tar
|