lazarus/tools/install/create_lazarus_export_tgz.sh
mattias 9f07a137d7 set +x attribute for scripts
git-svn-id: trunk@7434 -
2005-07-27 09:18:33 +00:00

44 lines
663 B
Bash
Executable File

#!/bin/bash
#set -x
set -e
OutputFile=$1
Usage="$0 [download] outputfilename"
Download=no
if [ "x$1" = "xdownload" ]; then
Download=yes
shift
fi
if [ "x$OutputFile" = "x" ]; then
echo $Usage
exit
fi
if [ "x$Download" = "xyes" ]; then
echo "downloading lazarus cvs ..."
cd /tmp
rm -rf /tmp/lazarus
svn export http://svn.freepascal.org/svn/lazarus/trunk lazarus
cd -
else
echo "extracting lazarus from local svn ..."
cd ../..
SourceDir=`pwd`
cd -
rm -rf /tmp/lazarus
svn export file://$SourceDir lazarus
fi
cd /tmp
echo "packing ..."
tar cvzf lazarus.tgz lazarus
cd -
mv /tmp/lazarus.tgz $OutputFile
rm -rf /tmp/lazarus
# end.