Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

generalize perlall from /usr/local/bin/perl5*

  • Loading branch information...
commit 37c3c90244c19b5c2c6d33208581899b1ddebadb 1 parent e11264d
@rurban authored
Showing with 9 additions and 4 deletions.
  1. +1 −1  makectags
  2. +2 −1  makeperltags
  3. +6 −2 perlall-makeinstall
View
2  makectags
@@ -1,4 +1,4 @@
#! /bin/sh
/usr/bin/mv -f TAGS TAGS~ 2>/dev/null
-/usr/bin/find \( -iname \*.c -o -iname \*.h \) -exec etags -a --language-force=c \{\} \;
+/usr/bin/find \( -iname \*.c -o -iname \*.h \) -exec etags -a --language=c \{\} \;
View
3  makeperltags
@@ -1,4 +1,5 @@
#! /bin/sh
/usr/bin/mv -f TAGS TAGS~ 2>/dev/null
-/usr/bin/find . \( -iname \*.pl -o -iname \*.pm -o -iname \*.cgi \) -exec etags -a --lang=perl \{\} \;
+/usr/bin/find . \( -iname \*.pl -o -iname \*.pm -o -iname \*.cgi \) \
+ -exec etags -a --language=perl \{\} \;
View
8 perlall-makeinstall
@@ -8,7 +8,11 @@
# 5.15.0-m 5.15.1d-nt 5.15.1d-nt-opt 5.15.2-nt 5.15.2d-nt 5.15.1d-m
# /usr/local/bin/perl5*
#export perlall=${perlall:-"5.14.2-nt 5.12.3-m 5.10.0-m 5.8.8-nt 5.8.9 5.15.4d-nt 5.6.2d-nt 5.8.4d-nt 5.8.5d-nt 5.8.9d 5.10.1d-nt 5.14.0d-m 5.14.1-nt 5.14.1d-nt 5.14.2d 5.15.3-nt"}
-export perlall=${perlall:-"5.12.4 5.15.4d-nt 5.15.4d"}
+if [ -z "$perlall" ]; then
+ perlall=`ls /usr/local/bin/perl5*|grep -v '*~'|sed 's,/usr/local/bin/perl,,'`
+else
+ export perlall=${perlall:-"5.14.1-nt 5.14.1d-nt 5.14.2-nt 5.14.2d-nt 5.12.4 5.15.4d-nt 5.15.4d"}
+fi
platform=$(uname | tr A-Z a-z)
base=$(basename $0)
@@ -83,7 +87,7 @@ do
if [ "$base" = "perlall-makeinstall" ]
then
__print1 "make test && $sudo make install"
- make && (make test TEST_VERBOSE=1 | tee -a $log 2>&1) && $sudo make install
+ make && (make test TEST_VERBOSE=1 | tee -a $log 2>&1) && sudo make install
fi
if [ "$base" = "perlall-maketest-m" -a -d ".git" -a $(basename $PWD) = "B-C" ]
then
Please sign in to comment.
Something went wrong with that request. Please try again.