* new script create-release.sh
* moved scripts to a new subdirectory "scripts/"
This commit is contained in:
67
scripts/create-release.sh
Executable file
67
scripts/create-release.sh
Executable file
@@ -0,0 +1,67 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
# 2001-08-08, swix@users.sourceforge.net:
|
||||
# - created script
|
||||
# - added release todo list
|
||||
#
|
||||
|
||||
if [ $# != 1 ]
|
||||
then
|
||||
echo "Usage: create-release.sh version"
|
||||
echo " (no spaces allowed!)"
|
||||
echo ""
|
||||
echo "Example: create-release.sh 2.2.0-rc5"
|
||||
exit
|
||||
fi
|
||||
|
||||
(mv tmp tmp-`date +%s`)
|
||||
mkdir tmp
|
||||
cd tmp
|
||||
echo "Press [ENTER]!"
|
||||
cvs -d:pserver:anonymous@cvs.phpmyadmin.sourceforge.net:/cvsroot/phpmyadmin login
|
||||
cvs -z3 -d:pserver:anonymous@cvs.phpmyadmin.sourceforge.net:/cvsroot/phpmyadmin co phpMyAdmin
|
||||
|
||||
date > phpMyAdmin/RELEASE-DATE-$1
|
||||
mv phpMyAdmin phpMyAdmin-$1
|
||||
zip -9 -r phpMyAdmin-$1-php3.zip phpMyAdmin-$1
|
||||
tar cvzf phpMyAdmin-$1-php3.tar.gz phpMyAdmin-$1
|
||||
cd phpMyAdmin-$1
|
||||
./extchg.sh php3 php
|
||||
cd ..
|
||||
zip -9 -r phpMyAdmin-$1-php.zip phpMyAdmin-$1
|
||||
tar cvzf phpMyAdmin-$1-php.tar.gz phpMyAdmin-$1
|
||||
|
||||
echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
echo "Files:"
|
||||
echo "------"
|
||||
|
||||
ls -la *.gz *.zip
|
||||
cd ..
|
||||
|
||||
cat <<END
|
||||
|
||||
Todo now:
|
||||
---------
|
||||
1. upload the files to SF:
|
||||
ftp upload.sourceforge.net
|
||||
cd incoming
|
||||
mput tmp/*.gz *.zip
|
||||
2. add files to SF files page (cut and paste changelog since last release)
|
||||
3. add SF news item to phpMyAdmin project
|
||||
4. update the download page: /home/groups/p/ph/phpmyadmin/htdocs
|
||||
5. announce release on freshmeat (http://freshmeat.net/projects/phpmyadmin/)
|
||||
6. announce release on http://phpwizard.net/phorum/list.php?f=1
|
||||
7. send a short mail (with list of major changes) to
|
||||
phpmyadmin-devel@lists.sourceforge.net
|
||||
phpmyadmin-news@lists.sourceforge.net
|
||||
phpmyadmin-users@lists.sourceforge.net
|
||||
8. increment rc count or version in CVS : in defines.inc.php3
|
||||
the line " define('PHPMYADMIN_VERSION', '2.2.0rc4'); "
|
||||
9. the end :-)
|
||||
|
||||
END
|
||||
|
27
scripts/extchg.sh
Executable file
27
scripts/extchg.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
# $Id$
|
||||
|
||||
# original php3->phtml converter by Pavel Piankov <pashah@spb.sitek.net>
|
||||
# modified by Tobias Ratschiller to allow any file extension
|
||||
# part of the phpMyAdmin distribution <http://phpwizard.net/phpMyAdmin>
|
||||
|
||||
# 2001-07-07, lem9@users.sourceforge.net:
|
||||
# - supports sub-directories
|
||||
# - no more bak directory
|
||||
|
||||
if [ $# != 2 ]
|
||||
then
|
||||
echo "Usage: extchg.sh <extension to change from> <extension to change to>"
|
||||
echo ""
|
||||
echo "Example: extchg.sh php3 php"
|
||||
exit
|
||||
fi
|
||||
|
||||
for i in `find . -name "*.$1"`
|
||||
do
|
||||
echo $i
|
||||
sed -e 's/\.'$1'/\.'$2'/g' $i > `ls $i|sed -e 's/'$1'/'$2'/g'`
|
||||
rm $i
|
||||
done;
|
||||
|
18
scripts/remove_control_m.sh
Executable file
18
scripts/remove_control_m.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ $# != 1 ]
|
||||
then
|
||||
echo "Usage: remove_control_m.sh <extension of files>"
|
||||
echo ""
|
||||
echo "Example: remove_control_m.sh php3"
|
||||
exit
|
||||
fi
|
||||
|
||||
for i in `find . -name "*.$1"`
|
||||
do
|
||||
echo $i
|
||||
tr -d '\015' < $i > ${i}.new
|
||||
rm $i
|
||||
mv ${i}.new $i
|
||||
done;
|
||||
|
Reference in New Issue
Block a user