• 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ónbbb31346a108706660f3f4bbc355ff528bee36a3 (tree)
Tiempo2005-04-17 14:04:13
Autorhenoheno <henoheno>
Commiterhenoheno

Log Message

Added --norm option

Cambiar Resumen

Diferencia incremental

--- a/release.sh
+++ b/release.sh
@@ -1,5 +1,5 @@
11 #!/bin/sh
2-# $Id: release.sh,v 1.18 2005/04/10 09:28:13 henoheno Exp $
2+# $Id: release.sh,v 1.19 2005/04/17 05:04:13 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 # ==========================================================
@@ -16,6 +16,7 @@ usage(){
1616 warn "Usage: $_name [options] VERSION_TAG (1.4.3_rc1 like)"
1717 warn " Options:"
1818 warn " --nopkg Suppress creating archive (Extract and chmod only)"
19+ warn " --norm --nopkg, and remove nothing (.cvsignore etc)"
1920 warn " -z|--zip Create *.zip archive"
2021 warn " --move-dist Move *.ini.php => *.ini-dist.php"
2122 warn " --copy-dist Move, and Copy *.ini.php <= *.ini-dist.php"
@@ -77,6 +78,7 @@ getopt(){ _arg=noarg
7778 -[hH]|--help ) echo _help _exit ;;
7879 --debug ) echo _debug ;;
7980 --nopkg ) echo _nopkg ;;
81+ --norm|--noremove ) echo _noremove ;;
8082 -z|--zip ) echo _zip ;;
8183 --copy-dist ) echo _copy_dist ;;
8284 --move-dist ) echo _move_dist ;;
@@ -146,8 +148,10 @@ echo cvs -z3 -d "$CVSROOT" -q export -r "$tag" -d "$pkg_dir" "$mod"
146148 test -d "$pkg_dir" || err "There is'nt a directory: $pkg_dir"
147149
148150 # Remove '.cvsignore' if exists -----------------------------
149-echo find "$pkg_dir" -type f -name '.cvsignore' "| xargs rm -f"
150- find "$pkg_dir" -type f -name '.cvsignore' | xargs rm -f
151+test -z "$__noremove" && {
152+ echo find "$pkg_dir" -type f -name '.cvsignore' "| xargs rm -f"
153+ find "$pkg_dir" -type f -name '.cvsignore' | xargs rm -f
154+}
151155
152156 # chmod -----------------------------------------------------
153157
@@ -155,7 +159,7 @@ chmod_pkg "$pkg_dir"
155159
156160 # Create a package ------------------------------------------
157161
158-test ! -z "$__nopkg" && exit 0
162+test ! -z "$__nopkg$__noremove" && exit 0
159163
160164 ( cd "$pkg_dir"
161165