#!/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 svn co https://svn.sourceforge.net/svnroot/mosesdecoder/trunk mosesdecoder cd mosesdecoder base=`pwd` 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/ BUILD-INSTRUCTIONS gzip moses-release.tar echo tar-ball: $base/moses-release.tar