• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisión25ac9eb561bb8843c2c8e971a61039145d1f1bae (tree)
Tiempo2005-03-21 22:46:37
Autorhenoheno <henoheno>
Commiterhenoheno

Log Message

Added --move-dist and --copy-dist

Cambiar Resumen

Diferencia incremental

--- a/release_update.sh
+++ b/release_update.sh
@@ -1,5 +1,5 @@
11 #!/bin/sh
2-# $Id: release_update.sh,v 1.8 2005/03/21 12:56:48 henoheno Exp $
2+# $Id: release_update.sh,v 1.9 2005/03/21 13:46:37 henoheno Exp $
33 # $CVSKNIT_Id: release.sh,v 1.11 2004/05/28 14:26:24 henoheno Exp $
44 # Release automation script for PukiWiki
55 # ==========================================================
@@ -72,8 +72,8 @@ getopt(){ _arg=noarg
7272 -[hH]|--help ) echo _help _exit ;;
7373 --debug ) echo _debug ;;
7474 -z|--zip ) echo _zip ;;
75- #--copy-dist ) echo _copy_dist ;;
76- #--move-dist ) echo _move_dist ;;
75+ --copy-dist ) echo _copy_dist ;;
76+ --move-dist ) echo _move_dist ;;
7777 -d ) echo _CVSROOT 2 ; _arg="$2" ;;
7878 -* ) warn "Error: Unknown option \"$1\"" ; return 1 ;;
7979 * ) echo OTHER ;;
@@ -162,6 +162,18 @@ echo find "$pkg_dir" -type f -name '.cvsignore' -delete
162162 find "$pkg_dir" -type d -empty | xargs rmdir
163163 find "$pkg_dir" -type d -empty | xargs rmdir
164164
165+# Move / Copy *.ini.php files
166+if [ 'x' != "x$__copy_dist$__move_dist" ] ; then
167+( cd "$pkg_dir"
168+
169+ find . -type f -name "*.ini.php" | while read file; do
170+ dist_file="` echo "$file" | sed 's/ini\.php$/ini-dist.php/' `"
171+ mv -f "$file" "$dist_file"
172+ test "$__copy_dist" && cp -f "$dist_file" "$file"
173+ done
174+)
175+fi
176+
165177 # chmod
166178 chmod_pkg "$pkg_dir"
167179