Update of /cvsroot/php-blog/serendipity/bundled-libs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26882
Modified Files:
Tag: branch-smarty
create_release.sh
Log Message:
MFH
Index: create_release.sh
===================================================================
RCS file: /cvsroot/php-blog/serendipity/bundled-libs/create_release.sh,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -u -d -r1.1 -r1.1.2.1
--- create_release.sh 14 Jun 2004 13:13:19 -0000 1.1
+++ create_release.sh 14 Sep 2004 13:40:10 -0000 1.1.2.1
@@ -16,16 +16,17 @@
echo ""
echo "-[serendipity create_release.sh START]---------------------------------"
-if [ "x$1" = "x" ] || [ "x$2" = "x" ] || [ "x$3" = "x" ] ;
+if [ "x$1" = "x" ] || [ "x$2" = "x" ] || [ "x$3" = "x" ] || [ "x$4" = "x" ];
then
echo "usage: ./create_release.sh
[tar.gz dump filename]
[serendipity installation dirname, without paths]
- [username, i.e. nobody.nogroup]"
+ [username, i.e. nobody]
+ [group, i.e. nogroup]"
echo ""
echo "example:"
echo " $> cd serendipity/bundled-libs/"
- echo " $> ./create_release.sh serendipity-0.7.tar.gz serendipity nobody.nogroup"
+ echo " $> ./create_release.sh serendipity-0.7.tar.gz serendipity nobody nogroup"
echo ""
echo "WARNING: Running this script in a productive blog environment will do"
echo " serious harm!"
@@ -47,27 +48,22 @@
echo " [DONE]"
echo ""
- echo "2. Adjusting directory/file ownership to $3"
- chown -R "$3" "$2"
- echo " [DONE]"
- echo ""
-
- echo "3. Adjusting all subdirectory permissions to 755"
+ echo "2. Adjusting all subdirectory permissions to 755"
find "$2" -type d -exec chmod 755 {} \;
echo " [DONE]"
echo ""
- echo "4. Adjusting core directory permissions to 777"
+ echo "3. Adjusting core directory permissions to 777"
chmod 777 "$2"
echo " [DONE]"
echo ""
- echo "5. Adjusting all file permissions to 644"
+ echo "4. Adjusting all file permissions to 644"
find "$2" -type f -exec chmod 644 {} \;
echo " [DONE]"
echo ""
- echo "6. Adjusting special files..."
+ echo "5. Adjusting special files..."
echo " - $2/.htaccess [666]"
chmod 666 "$2/.htaccess"
@@ -79,7 +75,7 @@
echo " [DONE]"
echo ""
- echo "7. Altering CVS to be useful for anonymous users..."
+ echo "6. Altering CVS to be useful for anonymous users..."
echo " - Removing CVS branch tag, so that a user can upgrade to latest CVS"
find "$2" -type f -name Tag -exec rm {} \;
echo " [DONE]"
@@ -91,12 +87,12 @@
echo " [DONE]"
echo ""
- echo "8. Creating .tgz file $1"
- tar -czf "$1" "$2"
+ echo "7. Creating .tgz file $1"
+ tar --owner=$3 --group=$4 -czf "$1" "$2"
echo " [DONE]"
echo ""
- echo "9. All Done. Bybe-Bye."
+ echo "8. All Done. Bybe-Bye."
else
echo "Basedirectory ../../$2 not found. Check parameters"
fi
|