Revisión | bbb31346a108706660f3f4bbc355ff528bee36a3 (tree) |
---|---|
Tiempo | 2005-04-17 14:04:13 |
Autor | henoheno <henoheno> |
Commiter | henoheno |
Added --norm option
@@ -1,5 +1,5 @@ | ||
1 | 1 | #!/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 $ | |
3 | 3 | # $CVSKNIT_Id: release.sh,v 1.11 2004/05/28 14:26:24 henoheno Exp $ |
4 | 4 | # Release automation script for PukiWiki |
5 | 5 | # ========================================================== |
@@ -16,6 +16,7 @@ usage(){ | ||
16 | 16 | warn "Usage: $_name [options] VERSION_TAG (1.4.3_rc1 like)" |
17 | 17 | warn " Options:" |
18 | 18 | warn " --nopkg Suppress creating archive (Extract and chmod only)" |
19 | + warn " --norm --nopkg, and remove nothing (.cvsignore etc)" | |
19 | 20 | warn " -z|--zip Create *.zip archive" |
20 | 21 | warn " --move-dist Move *.ini.php => *.ini-dist.php" |
21 | 22 | warn " --copy-dist Move, and Copy *.ini.php <= *.ini-dist.php" |
@@ -77,6 +78,7 @@ getopt(){ _arg=noarg | ||
77 | 78 | -[hH]|--help ) echo _help _exit ;; |
78 | 79 | --debug ) echo _debug ;; |
79 | 80 | --nopkg ) echo _nopkg ;; |
81 | + --norm|--noremove ) echo _noremove ;; | |
80 | 82 | -z|--zip ) echo _zip ;; |
81 | 83 | --copy-dist ) echo _copy_dist ;; |
82 | 84 | --move-dist ) echo _move_dist ;; |
@@ -146,8 +148,10 @@ echo cvs -z3 -d "$CVSROOT" -q export -r "$tag" -d "$pkg_dir" "$mod" | ||
146 | 148 | test -d "$pkg_dir" || err "There is'nt a directory: $pkg_dir" |
147 | 149 | |
148 | 150 | # 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 | +} | |
151 | 155 | |
152 | 156 | # chmod ----------------------------------------------------- |
153 | 157 |
@@ -155,7 +159,7 @@ chmod_pkg "$pkg_dir" | ||
155 | 159 | |
156 | 160 | # Create a package ------------------------------------------ |
157 | 161 | |
158 | -test ! -z "$__nopkg" && exit 0 | |
162 | +test ! -z "$__nopkg$__noremove" && exit 0 | |
159 | 163 | |
160 | 164 | ( cd "$pkg_dir" |
161 | 165 |