mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
Geändert:
* ./make.sh dist erstellt von jetzt an einen Tarball mit den letzten Sources im SVN. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@114 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
45
make.sh
45
make.sh
@@ -904,47 +904,10 @@ clean)
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
dist)
|
dist)
|
||||||
echo "Building source package from CVS, list of changed files, MD5 of release files"
|
echo "Building source package from SVN: "
|
||||||
if [ ! -s $BASEDIR/doc/CVS/Tag ]; then
|
svn export http://svn.ipfire.eu/svn/ipfire ipfire-source/ --force
|
||||||
BRANCH=""
|
tar cfz ipfire-source-`date +'%Y-%m-%d'`-r`svn info | grep Revision | cut -c 11-`.tar.gz ipfire-source
|
||||||
BRANCHOPTS="-D `date +'%Y-%m-%d'`"
|
rm ipfire-source/ -r
|
||||||
else
|
|
||||||
BRANCH=`cat $BASEDIR/doc/CVS/Tag`
|
|
||||||
BRANCH=${BRANCH:1}
|
|
||||||
BRANCHOPTS="-r $BRANCH"
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -rf $BASEDIR/build/tmp/$SNAME-$VERSION $BASEDIR/doc/release.txt
|
|
||||||
cd $BASEDIR/build/tmp
|
|
||||||
# build sources tgz
|
|
||||||
echo "Export tree $BRANCH $SNAME-$VERSION"
|
|
||||||
cvs -z3 -d `cat $BASEDIR/CVS/Root` export $BRANCHOPTS ipcop
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
mv ipcop $SNAME-$VERSION
|
|
||||||
tar cfz $BASEDIR/$SNAME-sources-$VERSION.tgz $SNAME-$VERSION
|
|
||||||
cd $BASEDIR
|
|
||||||
|
|
||||||
if [ ! -d $BASEDIR/build/tmp/$PREVIOUSTAG ]; then
|
|
||||||
# export previous version to be compared with actual, this help to check wich files need to go in update
|
|
||||||
cd $BASEDIR/build/tmp
|
|
||||||
echo "Export tree $PREVIOUSTAG"
|
|
||||||
cvs -z3 -d `cat $BASEDIR/CVS/Root` export -r $PREVIOUSTAG ipcop
|
|
||||||
mv ipcop $PREVIOUSTAG
|
|
||||||
fi
|
|
||||||
if [ -d $BASEDIR/build/tmp/$PREVIOUSTAG -o -d $BASEDIR/build/tmp/$SNAME-$VERSION ]; then
|
|
||||||
cd $BASEDIR/build/tmp
|
|
||||||
echo "diff $PREVIOUSTAG <> $BRANCH $SNAME-$VERSION >doc/updated-sources.txt"
|
|
||||||
diff -rq $PREVIOUSTAG $SNAME-$VERSION > $BASEDIR/doc/updated-sources.txt
|
|
||||||
mv $BASEDIR/doc/updated-sources.txt $BASEDIR/doc/updated-sources.bak
|
|
||||||
sed -e "s+Files $PREVIOUSTAG\/++" \
|
|
||||||
-e "s+ and .*$++" \
|
|
||||||
-e "s+src/rc.d+etc/rc.d+" \
|
|
||||||
-e "s+^langs/+var/ipcop/langs/+" \
|
|
||||||
-e "s+html/cgi-bin+home/httpd/cgi-bin+" $BASEDIR/doc/updated-sources.bak \
|
|
||||||
> $BASEDIR/doc/updated-sources.txt
|
|
||||||
rm -f $BASEDIR/doc/updated-sources.bak
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
newpak)
|
newpak)
|
||||||
# create structure for a new package
|
# create structure for a new package
|
||||||
|
|||||||
Reference in New Issue
Block a user