fix how alt code is used in 1989/jar.1

Turned *.sh files into executable bash scripts.
This commit is contained in:
Landon Curt Noll committed 2023-03-08 02:24:23 -08:00
1 parent 129ffa9fb5
commit d1bb558f70
5 files changed
+13 -13

No files matched your search

+4 -4
View File
@@ -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
File renamed without changes.
+8
View File
@@ -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
-8
View File
@@ -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
Regular → Executable
+1 -1
View File
@@ -1,4 +1,4 @@
:
#!/usr/bin/env bash
# 'run' jar.1
# run/compile it