home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!corton!ircam!fingerhu
- From: fingerhu@ircam.fr (Michel Fingerhut)
- Newsgroups: comp.lang.perl
- Subject: VERSIONS 3.1 -> 3.2 patch
- Message-ID: <1992Jul31.092738.14358@ircam.fr>
- Date: 31 Jul 92 09:27:38 GMT
- Organization: Inst. de Recherche et Coordination Acoustique/Musique, Paris
- Lines: 58
-
- This small patch fixes the lookup for executables (they can end up
- with a relative path).
-
- ----------------- Cut here ----------------
- ------- versions.sh -------
- *** Standard Input Fri Jul 31 11:24:48 1992
- --- versions.sh Fri Jul 31 11:21:12 1992
- ***************
- *** 7,13 ****
- # manager@ircam.fr
-
- #
- ! # versions 3.1 IRCAM 7/31/92
- #
- # Extract program version number
- #
- --- 7,13 ----
- # manager@ircam.fr
-
- #
- ! # versions 3.2 IRCAM 7/31/92
- #
- # Extract program version number
- #
- ***************
- *** 97,103 ****
-
- # if -v, print version and exit
- if (defined $opt_v) {
- ! print "%I% IRCAM %G%";
- exit;
- }
-
- --- 97,103 ----
-
- # if -v, print version and exit
- if (defined $opt_v) {
- ! print "3.2 IRCAM 7/31/92";
- exit;
- }
-
- ***************
- *** 156,162 ****
- $path= "$dir/$path", last if -f "$dir/$path";
- }
- }
- ! next if $path !~ /^\/.*/ || ! -f $path;
-
- # perform special macro subst: %% -> $path
- $command=~ s/\%\%/$path/g;
- --- 156,162 ----
- $path= "$dir/$path", last if -f "$dir/$path";
- }
- }
- ! next if ! -f $path;
-
- # perform special macro subst: %% -> $path
- $command=~ s/\%\%/$path/g;
-