Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 37c3c90244c19b5c2c6d33208581899b1ddebadb 1 parent e11264d
Reini Urban authored October 28, 2011
2  makectags
... ...
@@ -1,4 +1,4 @@
1 1
 #! /bin/sh
2 2
 
3 3
 /usr/bin/mv -f TAGS TAGS~ 2>/dev/null
4  
-/usr/bin/find  \( -iname \*.c -o -iname \*.h \) -exec etags -a --language-force=c \{\} \;
  4
+/usr/bin/find  \( -iname \*.c -o -iname \*.h \) -exec etags -a --language=c \{\} \;
3  makeperltags
... ...
@@ -1,4 +1,5 @@
1 1
 #! /bin/sh
2 2
 
3 3
 /usr/bin/mv -f TAGS TAGS~ 2>/dev/null
4  
-/usr/bin/find . \( -iname \*.pl -o -iname \*.pm  -o -iname \*.cgi \) -exec etags -a --lang=perl \{\} \;
  4
+/usr/bin/find . \( -iname \*.pl -o -iname \*.pm  -o -iname \*.cgi \) \
  5
+    -exec etags -a --language=perl \{\} \;
8  perlall-makeinstall
@@ -8,7 +8,11 @@
8 8
 # 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
9 9
 # /usr/local/bin/perl5*
10 10
 #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"}
11  
-export perlall=${perlall:-"5.12.4 5.15.4d-nt 5.15.4d"}
  11
+if [ -z "$perlall" ]; then
  12
+  perlall=`ls /usr/local/bin/perl5*|grep -v '*~'|sed 's,/usr/local/bin/perl,,'`
  13
+else
  14
+  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"}
  15
+fi
12 16
 platform=$(uname | tr A-Z a-z)
13 17
 
14 18
 base=$(basename $0)
@@ -83,7 +87,7 @@ do
83 87
           if [ "$base" = "perlall-makeinstall" ]
84 88
           then
85 89
               __print1 "make test && $sudo make install"
86  
-              make &&  (make test TEST_VERBOSE=1 | tee -a $log 2>&1) && $sudo make install
  90
+              make &&  (make test TEST_VERBOSE=1 | tee -a $log 2>&1) && sudo make install
87 91
           fi
88 92
 	  if [ "$base" = "perlall-maketest-m" -a -d ".git" -a $(basename $PWD) = "B-C" ]
89 93
 	  then

0 notes on commit 37c3c90

Please sign in to comment.
Something went wrong with that request. Please try again.