*** empty log message ***

This commit is contained in:
hyung-hwan 2007-02-08 04:03:33 +00:00
parent f39051bd86
commit 2d42e7ddf1
4 changed files with 7 additions and 43 deletions

View File

@ -1,20 +0,0 @@
SRCS = awk.c err.c tree.c str.c tab.c map.c parse.c \
run.c rec.c val.c func.c misc.c extio.c
OBJS = $(SRCS:.c=.o)
OUT = libaseawk.a
CC = cc
CFLAGS = -Xc -a ansi -w3 -O2 -I../..
all: $(OBJS)
ar cr $(OUT) $(OBJS)
clean:
rm -rf $(OBJS) $(OUT) *.obj
.SUFFIXES: .c .o
.c.o:
$(CC) $(CFLAGS) -c $<

View File

@ -10,8 +10,8 @@ set default [.ase.awk]
mms mms
set default [-.-.test.awk] set default [-.-.test.awk]
mms mms
awk :== $DISK$GEIN_SYS:[USERS.BACON.ASE.TEST.AWK]awk.exe aseawk :== $DISK$GEIN_SYS:[USERS.BACON.ASE.TEST.AWK]aseawk.exe
awk -f hello.awk aseawk -f hello.awk
=== HP-UX === === HP-UX ===
@ -27,6 +27,7 @@ CC=cc CFLAGS="-O2 +DD32" LDFLAGS="+DD32" ./configure
=== SCO OpenServer === === SCO OpenServer ===
cc SCO OpenServer Release 5.0.7 (SCO_SV 3.2 5.0.7)
cc
CC=cc CFLAGS="-Xc -a ansi -O2" ./configure CC=cc CFLAGS="-Xc -a ansi -O2" ./configure

View File

@ -1,17 +0,0 @@
CC = cc
CFLAGS = -Xc -a ansi -O2 -I../../..
LDFLAGS = -L../../bas -L../../awk
LIBS = -lxpawk -lm
all: aseawk
aseawk: awk.o
$(CC) -o awk awk.o $(LDFLAGS) $(LIBS)
clean:
rm -f *.o aseawk
.SUFFIXES: .c .o
.c.o:
$(CC) -c $(CFLAGS) $<

View File

@ -6,7 +6,7 @@ run_script_for_init()
data="$2" data="$2"
output=`echo $script | sed 's/\.awk$/.out/g'` output=`echo $script | sed 's/\.awk$/.out/g'`
./awk -d -f "$script" "$data" > "$output" ./aseawk -d -f "$script" "$data" > "$output"
} }
run_init() run_init()
@ -29,7 +29,7 @@ run_script_for_test()
output=`echo $script | sed 's/\.awk$/.out/g'` output=`echo $script | sed 's/\.awk$/.out/g'`
echo ">> RUNNING $script" echo ">> RUNNING $script"
./awk -d -f "$script" "$data" > "$output.$pid" ./aseawk -d -f "$script" "$data" > "$output.$pid"
#diff -y "$output" "$output.$pid" #diff -y "$output" "$output.$pid"
diff "$output" "$output.$pid" diff "$output" "$output.$pid"
@ -90,7 +90,7 @@ run_test()
# main # # main #
#--------# #--------#
if [ ! -x ./awk ] if [ ! -x ./aseawk ]
then then
echo "Error: cannot locate a relevant awk interpreter" echo "Error: cannot locate a relevant awk interpreter"
exit 1; exit 1;