diff options
author | Kevin Ryde <user42@zip.com.au> | 2001-10-04 22:57:30 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2001-10-04 22:57:30 +0200 |
commit | 0964ab755b21b98edfdf0b71e3eae6b52af07684 (patch) | |
tree | eff2c47806e40904460f845acd896a18cb4fee1a /mpn/m4-ccas | |
parent | 43897feec1b6c30020bac2681c9f52abdafa34d1 (diff) | |
download | gmp-0964ab755b21b98edfdf0b71e3eae6b52af07684.tar.gz |
More of:
More of:
* mpn/m4-ccas: New file.
Need "-o" always.
And when adding -o need to strip any path, so output is to the current
directory.
Diffstat (limited to 'mpn/m4-ccas')
-rwxr-xr-x | mpn/m4-ccas | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mpn/m4-ccas b/mpn/m4-ccas index 85530951a..469dd0d63 100755 --- a/mpn/m4-ccas +++ b/mpn/m4-ccas @@ -55,7 +55,8 @@ for i in "$@"; do echo "Only one .asm file permitted" exit 1 fi - TMP=tmp-`echo "$i" | sed -e 's/\.asm$//' -e 's/^.*[\\/:]//'`.s + BASENAME=`echo "$i" | sed -e 's/\.asm$//' -e 's/^.*[\\/:]//'` + TMP=tmp-$BASENAME.s ASM=$i CC="$CC $TMP" ;; @@ -84,7 +85,7 @@ fi # explicit -o in both cases since we're assembling tmp-foo.s. # if test $SEEN_O = no; then - CC="$CC -o `echo "$ASM" | sed 's/\.asm$//'`.o" + CC="$CC -o $BASENAME.o" fi echo "$M4 $DEFS $ASM >$TMP" |