ossp-pkg/shtool/shtoolize.in 1.17 -> 1.18
--- shtoolize.in 2000/06/14 18:50:13 1.17
+++ shtoolize.in 2000/06/30 16:52:08 1.18
@@ -284,6 +284,12 @@
$size = sprintf("%d/%d available modules", $#used+1, $#available+1);
}
+# Generate recreation command
+my $recreate = "shtoolize -o${opt_o}";
+foreach $name (@used) {
+ $recreate .= " $name";
+}
+
##
## OUTPUT PHASE
##
@@ -351,6 +357,7 @@
echo ' -v, --version display shtool version information'
echo ' -h, --help display shtool usage help page (this one)'
echo ' -d, --debug display shell trace information'
+ echo ' -r, --recreate recreate this shtool script via shtoolize'
echo ''
${usage}
echo ''
@@ -360,6 +367,10 @@
echo "GNU shtool ${version}"
exit 0
fi
+if [ ".\$1" = ".-r" -o ".\$1" = ."--recreate" ]; then
+ ${recreate}
+ exit 0
+fi
if [ ".\$1" = ".-d" -o ".\$1" = ."--debug" ]; then
shift
set -x
|
|