summaryrefslogtreecommitdiff
path: root/writemain.SH
diff options
context:
space:
mode:
Diffstat (limited to 'writemain.SH')
-rw-r--r--writemain.SH6
1 files changed, 5 insertions, 1 deletions
diff --git a/writemain.SH b/writemain.SH
index c428383085..025d954241 100644
--- a/writemain.SH
+++ b/writemain.SH
@@ -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:'`
;;