writemain dies when there are more than 4000 characters of extensions
authorKenneth Duda <kjd@cisco.com>
Sun, 27 Sep 1998 20:22:12 +0000 (13:22 -0700)
committerGurusamy Sarathy <gsar@cpan.org>
Fri, 2 Oct 1998 01:36:14 +0000 (01:36 +0000)
Message-Id: <199809280322.UAA01261@scorpion.cisco.com>

p4raw-id: //depot/perl@1902

writemain.SH

index c428383..025d954 100644 (file)
@@ -37,7 +37,11 @@ $spitshell >>writemain <<'!NO!SUBS!'
 orig="$*"
 args=''
 : Remove any .a suffixes and any leading path components
-for file in `echo $orig | sed 's/\.a//g'` ; do
+for file in $orig ; do
+        case "$file" in
+           *.a)  file=`echo $file | sed 's/\.a//g'`
+                 ;;
+        esac
        case "$file" in
        ext/*)  file=`echo $file | sed 's:ext/\(.*\)/[^/]*:\1:'`
                ;;