Better checking for input, exit when cvs doesn't work, don't include CVS and .cvsignore in tarballs, don't chmod everything to 775.
This commit is contained in:
@@ -11,6 +11,9 @@ $Source$
|
|||||||
2003-06-02 Michal Cihar <nijel@users.sourceforge.net>
|
2003-06-02 Michal Cihar <nijel@users.sourceforge.net>
|
||||||
* libraries/display_tbl.lib.php3, lang/*: Better text on button for
|
* libraries/display_tbl.lib.php3, lang/*: Better text on button for
|
||||||
executing bookmark (bug #745993).
|
executing bookmark (bug #745993).
|
||||||
|
* scripts/create-release.sh: Better checking for input, exit when cvs
|
||||||
|
doesn't work, don't include CVS and .cvsignore in tarballs, don't chmod
|
||||||
|
everything to 775.
|
||||||
|
|
||||||
2003-06-02 Marc Delisle <lem9@users.sourceforge.net>
|
2003-06-02 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
### 2.5.1 released
|
### 2.5.1 released
|
||||||
|
@@ -71,8 +71,7 @@ END
|
|||||||
printf "\a"
|
printf "\a"
|
||||||
read do_release
|
read do_release
|
||||||
|
|
||||||
if [ $do_release != 'y' ]
|
if [ "$do_release" != 'y' ]; then
|
||||||
then
|
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -85,9 +84,18 @@ mkdir cvs
|
|||||||
cd cvs
|
cd cvs
|
||||||
echo "Press [ENTER]!"
|
echo "Press [ENTER]!"
|
||||||
cvs -d:pserver:anonymous@cvs1:/cvsroot/phpmyadmin login
|
cvs -d:pserver:anonymous@cvs1:/cvsroot/phpmyadmin login
|
||||||
|
if [ $? -ne 0 ] ; then
|
||||||
|
echo "CVS login failed, bailing out"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
cvs -z3 -d:pserver:anonymous@cvs1:/cvsroot/phpmyadmin co -P $branch phpMyAdmin
|
cvs -z3 -d:pserver:anonymous@cvs1:/cvsroot/phpmyadmin co -P $branch phpMyAdmin
|
||||||
|
if [ $? -ne 0 ] ; then
|
||||||
|
echo "CVS checkout failed, bailing out"
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
|
||||||
date > phpMyAdmin/RELEASE-DATE-$1
|
date > phpMyAdmin/RELEASE-DATE-$1
|
||||||
|
find phpMyAdmin \( -name .cvsignore -o -name CVS \) -print0 | xargs -0 rm -rf
|
||||||
mv phpMyAdmin phpMyAdmin-$1
|
mv phpMyAdmin phpMyAdmin-$1
|
||||||
zip -9 -r phpMyAdmin-$1-php3.zip phpMyAdmin-$1
|
zip -9 -r phpMyAdmin-$1-php3.zip phpMyAdmin-$1
|
||||||
tar cvzf phpMyAdmin-$1-php3.tar.gz phpMyAdmin-$1
|
tar cvzf phpMyAdmin-$1-php3.tar.gz phpMyAdmin-$1
|
||||||
@@ -107,7 +115,8 @@ echo "------"
|
|||||||
|
|
||||||
ls -la *.gz *.zip *.bz2
|
ls -la *.gz *.zip *.bz2
|
||||||
cd ..
|
cd ..
|
||||||
chmod -R 775 cvs
|
find cvs -type d -print0 | xargs -0 chmod 775
|
||||||
|
find cvs -type f -print0 | xargs -0 chmod 664
|
||||||
|
|
||||||
|
|
||||||
cat <<END
|
cat <<END
|
||||||
|
Reference in New Issue
Block a user