diff --git a/1989/jar.1/Makefile b/1989/jar.1/Makefile index 1dcba3a1b..123f5b179 100644 --- a/1989/jar.1/Makefile +++ b/1989/jar.1/Makefile @@ -166,8 +166,8 @@ OBJ= ${PROG}.o DATA= TARGET= ${PROG} # -ALT_OBJ= ${PROG}.orig.o -ALT_TARGET= ${PROG}.orig +ALT_OBJ= ${PROG}.alt.o +ALT_TARGET= ${PROG}.alt ################# @@ -191,10 +191,10 @@ ${PROG}: ${PROG}.c alt: data ${ALT_TARGET} @${TRUE} -${PROG}.orig: ${PROG.orig}.c +${PROG}.alt: ${PROG.alt}.c @echo "NOTE: The original source might not compile using modern compilers." ${RM} -f $@ - ${CP} jar.1.orig.sh $@ + ${CP} jar.1.alt.sh $@ ${CHMOD} +x $@ # data files diff --git a/1989/jar.1/jar.1.orig.c b/1989/jar.1/jar.1.alt.c similarity index 100% rename from 1989/jar.1/jar.1.orig.c rename to 1989/jar.1/jar.1.alt.c diff --git a/1989/jar.1/jar.1.alt.sh b/1989/jar.1/jar.1.alt.sh new file mode 100755 index 000000000..8ad988585 --- /dev/null +++ b/1989/jar.1/jar.1.alt.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +# 'run' jar.1.alt + +# run/compile it +rm -f jar.1.alt.o +cc jar.1.alt.c -c +cat jar.1.alt.o +rm -f jar.1.alt.o diff --git a/1989/jar.1/jar.1.orig.sh b/1989/jar.1/jar.1.orig.sh deleted file mode 100644 index 01e978dfb..000000000 --- a/1989/jar.1/jar.1.orig.sh +++ /dev/null @@ -1,8 +0,0 @@ -: -# 'run' jar.1.orig - -# run/compile it -rm -f jar.1.orig.o -cc jar.1.orig.c -c -cat jar.1.orig.o -rm -f jar.1.orig.o diff --git a/1989/jar.1/jar.1.sh b/1989/jar.1/jar.1.sh old mode 100644 new mode 100755 index 64aaf78e9..455622169 --- a/1989/jar.1/jar.1.sh +++ b/1989/jar.1/jar.1.sh @@ -1,4 +1,4 @@ -: +#!/usr/bin/env bash # 'run' jar.1 # run/compile it