mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 21:29:31 +02:00
* new script
This commit is contained in:
parent
58613ed4a7
commit
24a0d113f9
30
install/makesource
Normal file
30
install/makesource
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ $# -ne 1 ]; then
|
||||||
|
echo "Usage: makesource <release>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z $CVSROOT ]; then
|
||||||
|
echo "CVSROOT not set"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
CVSTAGVER=`echo $1 | tr '.' '_'`
|
||||||
|
CVSTAG="RELEASE_$CVSTAGVER"
|
||||||
|
|
||||||
|
PACKNAME=fpc-$1.source
|
||||||
|
OUTPUTDIR=..
|
||||||
|
|
||||||
|
rm -rf buildsrc
|
||||||
|
|
||||||
|
mkdir buildsrc
|
||||||
|
cd buildsrc
|
||||||
|
cvs -z3 export -r $CVSTAG fpc
|
||||||
|
|
||||||
|
rm -f $OUTPUTDIR/$PACKNAME.tar.gz $OUTPUTDIR/$PACKNAME.zip
|
||||||
|
zip -D9r $OUTPUTDIR/$PACKNAME.zip fpc/
|
||||||
|
tar cfv - fpc/ | gzip > $OUTPUTDIR/$PACKNAME.tar.gz
|
||||||
|
rm -rf buildsrc
|
Loading…
Reference in New Issue
Block a user