makerelease.sh | makerelease.sh | |||
---|---|---|---|---|
skipping to change at line 33 | skipping to change at line 33 | |||
echo "usage: $0 releasename [--automatic]" | echo "usage: $0 releasename [--automatic]" | |||
exit | exit | |||
else | else | |||
RELEASENAME="$1" | RELEASENAME="$1" | |||
fi | fi | |||
if [ "x$2" = "x--automatic" ]; then | if [ "x$2" = "x--automatic" ]; then | |||
AUTOMATIC="yes" | AUTOMATIC="yes" | |||
fi | fi | |||
TIP=`hg tip --template "#rev#:#node|short#"` | TIP=`git log -1 --pretty=oneline | cut -d" " -f1` | |||
WRKDIR=`pwd` | WRKDIR=`pwd` | |||
if [ -d $RELEASENAME ]; then | if [ -d $RELEASENAME ]; then | |||
echo "Deleting previous release named $RELEASENAME." | echo "Deleting previous release named $RELEASENAME." | |||
rm -rf $WRKDIR/$RELEASENAME/ | rm -rf $WRKDIR/$RELEASENAME/ | |||
fi | fi | |||
echo "Making release named $RELEASENAME (tip $TIP)" | echo "Making release named $RELEASENAME (tip $TIP)" | |||
echo | echo | |||
echo "Building root: $RELEASENAME/" | echo "Building root: $RELEASENAME/" | |||
hg archive $RELEASENAME | cd .. | |||
git archive --format=tar --prefix=$RELEASENAME/ HEAD | gzip >scripts/$RELEA | ||||
SENAME-working.tar.gz | ||||
cd $WRKDIR | ||||
tar -xzvf $RELEASENAME-working.tar.gz | ||||
cd $RELEASENAME | cd $RELEASENAME | |||
sh autogen.sh | sh autogen.sh | |||
rm -rf autogen.sh autom4te.cache | rm -rf autogen.sh autom4te.cache | |||
rm -rf .gitignore | ||||
# Run application specific instructions here. | # Run application specific instructions here. | |||
if [ -x "$WRKDIR/application.sh" ]; then | if [ -x "$WRKDIR/application.sh" ]; then | |||
source $WRKDIR/application.sh | source $WRKDIR/application.sh | |||
fi | fi | |||
cd .. | cd .. | |||
echo "Building $RELEASENAME.tgz from $RELEASENAME/" | echo "Building $RELEASENAME.tgz from $RELEASENAME/" | |||
tar zcf $RELEASENAME.tgz $RELEASENAME/ | tar zcf $RELEASENAME.tar.gz $RELEASENAME/ | |||
echo "Building $RELEASENAME.tbz2 from $RELEASENAME/" | echo "Building $RELEASENAME.tbz2 from $RELEASENAME/" | |||
tar jcf $RELEASENAME.tbz2 $RELEASENAME/ | tar jcf $RELEASENAME.tar.bz2 $RELEASENAME/ | |||
rm $RELEASENAME-working.tar.gz | ||||
PUBLISH="yes" | PUBLISH="yes" | |||
ok="0" | ok="0" | |||
if [ "x$AUTOMATIC" != "xyes" ]; then | if [ "x$AUTOMATIC" != "xyes" ]; then | |||
echo | echo | |||
echo "Would you like to publish these releases now?" | echo "Would you like to publish these releases now?" | |||
while [ $ok -eq 0 ]; do | while [ $ok -eq 0 ]; do | |||
echo -n "[$PUBLISH] " | echo -n "[$PUBLISH] " | |||
skipping to change at line 98 | skipping to change at line 104 | |||
scp $RELEASENAME.tgz distfiles-master.atheme.org:/srv/distfiles | scp $RELEASENAME.tgz distfiles-master.atheme.org:/srv/distfiles | |||
scp $RELEASENAME.tbz2 distfiles-master.atheme.org:/srv/distfiles | scp $RELEASENAME.tbz2 distfiles-master.atheme.org:/srv/distfiles | |||
echo | echo | |||
echo "The releases have been published, and will be available to the entire" | echo "The releases have been published, and will be available to the entire" | |||
echo "distribution network within 15 minutes." | echo "distribution network within 15 minutes." | |||
fi | fi | |||
echo | echo | |||
echo "Done. If you have any bugs to report, report them against" | echo "Done. If you have any bugs to report, report them against" | |||
echo "the distfiles.atheme.org component at http://bugzilla.atheme.org" | echo "the distfiles.atheme.org component at http://jira.atheme.org" | |||
echo "Thanks!" | echo "Thanks!" | |||
echo | echo | |||
End of changes. 6 change blocks. | ||||
5 lines changed or deleted | 12 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |