Update of /cvsroot/phpweather/phpweather
In directory usw-pr-cvs1:/tmp/cvs-serv31662
Added Files:
make-release.sh
Log Message:
A nice little script that takes care of building tarballs.
--- NEW FILE ---
#!/bin/bash
#
# Copyright 2001 Martin Geisler <[EMAIL PROTECTED]>
# You're free to use this as described in the GPL.
#
# This small script retrieves the latest version of PHP Weather, pack
# it up into two tarballs (gz and bz2) and a zip file, and then asks
# for permission to upload these files to SourceForge.
#
# The files are placed in the current directory.
echo -n "Retrieving snapshot... "
cvs -Q -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/phpweather
export -kv -r HEAD -d phpweather.$$ phpweather
echo "done."
echo -n "Cleaning... "
cd phpweather.$$
VERSION=$(cat VERSION)
DATE=$(date -uI)
rm README-CVS VERSION
for file in README INSTALL; do
sed -e "s/#VERSION#/$VERSION/g" -e "s/#DATE#/$DATE/g" $file > tmp
mv -f tmp $file
done
cd ..
mv phpweather.$$ phpweather-$VERSION
echo "done."
echo -n "Creating phpweather-$VERSION.tar.gz... "
tar -cz phpweather-$VERSION -f phpweather-$VERSION.tar.gz
echo "done."
echo -n "Creating phpweather-$VERSION.tar.bz2... "
tar -cj phpweather-$VERSION -f phpweather-$VERSION.tar.bz2
echo "done."
echo -n "Creating phpweather-$VERSION.zip... "
zip -qr phpweather-$VERSION.zip phpweather-$VERSION
echo "done."
read -p "Should the file be uploaded to SourceForge? [y/N] " -n 1
echo
if [ "x$REPLY" == "xy" -o "x$REPLY" == "xY" ]; then
echo -n "Uploading files to SourceForge... "
ncftpput upload.sourceforge.net /incoming \
phpweather-$VERSION.tar.gz \
phpweather-$VERSION.tar.bz2 \
phpweather-$VERSION.zip
echo "done."
fi
echo -n "Removing phpweather-$VERSION... "
rm -R phpweather-$VERSION
echo "done."
_______________________________________________
PHPWeather-checkins mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/phpweather-checkins