OSSP CVS Repository

ossp - Check-in [61]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 61
Date: 2000-Jun-29 18:52:08 (local)
2000-Jun-29 16:52:08 (UTC)
User:rse
Branch:
Comment: *** empty log message ***
Tickets:
Inspections:
Files:
ossp-pkg/shtool/ChangeLog      1.127 -> 1.128     6 inserted, 0 deleted
ossp-pkg/shtool/shtool.pod      1.43 -> 1.44     4 inserted, 0 deleted
ossp-pkg/shtool/shtoolize.in      1.17 -> 1.18     11 inserted, 0 deleted

ossp-pkg/shtool/ChangeLog 1.127 -> 1.128

--- ChangeLog    2000/06/30 16:27:41     1.127
+++ ChangeLog    2000/06/30 16:52:08     1.128
@@ -11,7 +11,13 @@
 
  Changes between 1.4.9 and 1.5.0 (16-Apr-2000 to 30-Jun-2000):
 
+   *) Added global -r/--recreate option for generated shtool scripts which can
+      be used to easily upgrade a script (the trick is that -r knows the list
+      of modules which have to specified on the shtoolize command line).
+      [Ralf S. Engelschall]
+
    *) Completely rewrote `shtool version':
+   .....
       [Ralf S. Engelschall]
 
    *) Don't print `failed: 0/17' after a successful `make test'


ossp-pkg/shtool/shtool.pod 1.43 -> 1.44

--- shtool.pod   2000/06/30 16:27:41     1.43
+++ shtool.pod   2000/06/30 16:52:08     1.44
@@ -186,6 +186,10 @@
 
 Displays shell trace messages for debugging purposes.
 
+=item B<-r>, B<--recreate>
+
+Recreate the B<shtool> script with its own individual B<shtoolize> call.
+
 =back 
 
 =head1 COMMANDS


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

CVSTrac 2.0.1