From eab39c4b02eb67d795908d9963fee634cf984af1 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sat, 28 Oct 2023 05:37:29 -0700 Subject: [PATCH] Remove rest of alt files in 1989/westley The files compile.alt.sh and try.alt.sh are no longer useful. --- 1989/westley/compile.alt.sh | 61 ------------------------------------- 1989/westley/try.alt.sh | 39 ------------------------ 2 files changed, 100 deletions(-) delete mode 100755 1989/westley/compile.alt.sh delete mode 100755 1989/westley/try.alt.sh diff --git a/1989/westley/compile.alt.sh b/1989/westley/compile.alt.sh deleted file mode 100755 index f10c13181..000000000 --- a/1989/westley/compile.alt.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/env bash -# -# compile.alt.sh - compile westley.alt.c then generate and compile alt versions -# -# To change what compiler is used you can do something like: -# -# CC=/path/to/cc ./compile.sh -# -# The following example was run on a MacBook Pro with the M1 Max which which -# could not normally compile everything because macOS's compiler, even when run -# as gcc, is actually clang: -# -# CC=/opt/local/bin/gcc-mp-12 ./compile.sh -# -# We sleep (by default) for approximately 1 second after each command so that -# the you can read what is being done. If this is too fast you can change it in -# a similar way to the above but using the variable DELAY like so: -# -# DELAY=2 ./compile.sh -# -# You can of course use both variables in the same command line like: -# -# CC=/opt/local/bin/gcc-mp-12 DELAY=2 ./compile.sh -# DELAY=2 CC=/opt/local/bin/gcc-mp-12 ./compile.sh -# -# ...and so on. - -# get the compiler using default cc if not specified in the command line -# -# we cannot use the form '${CC:=cc}' because at least in some versions of bash -# it tries to invoke the command which would be an error by itself. Thus we just -# check if it's empty before we set it. -if [[ -z "$CC" ]]; then - CC="cc" -fi - -# get sleep duration -# we cannot use the form '${DELAY:=5}' because at least in some versions of bash -# it tries to invoke the command and obviously that won't work. Thus we check if -# it's empty before setting the default. -if [[ -z "$DELAY" ]]; then - DELAY=0 -fi - -# make clobber to make the directory clean and then compile westley.alt which we -# need to run everything else. Exit if make westley.alt fails as there would be -# nothing further that could be done in that case: -echo "$ make clobber westley.alt" -sleep "$DELAY" -make CC="$CC" clobber westley.alt || exit 1 -sleep "$DELAY" - -# run commands previously in the try section of the README.md, showing what the -# commands are as we go: - -# now generate and compile the files -# -echo "Generating and compiling alt versions ..." 1>&2 -sleep "$DELAY" -echo "$ make CC=$CC alt.ver0 alt.ver1 alt.ver2 alt.ver3" 1>&2 -make CC="$CC" alt.ver0 alt.ver1 alt.ver2 alt.ver3 diff --git a/1989/westley/try.alt.sh b/1989/westley/try.alt.sh deleted file mode 100755 index 7ff1eef7c..000000000 --- a/1989/westley/try.alt.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env bash - -make alt || exit 1 - - -echo "$ echo IOCCC | ./westley.alt" -echo IOCCC | ./westley.alt -echo - -echo "$ echo IOCCC | ./westley.alt 1" -echo IOCCC | ./westley.alt 1 -echo - -echo "$ echo IOCCC | ./westley.alt 1 2" -echo IOCCC | ./westley.alt 1 2 -echo - -echo "$ echo IOCCC | ./westley.alt 1 2 3" -echo IOCCC | ./westley.alt 1 2 3 -echo - -echo "$ echo IOCCC | ./alt.ver0" -echo IOCCC | ./alt.ver0 -echo - -echo "$ echo Version 1 | ./alt.ver1" -echo Version 1 | ./alt.ver1 -echo - -echo "$ echo Version 1 | ./alt.ver1 1" -echo Version 1 | ./alt.ver1 1 -echo - -echo "$ echo Version 1 | ./alt.ver1 1 2" -echo Version 1 | ./alt.ver1 1 2 -echo - -echo "$ echo Version 1 | ./alt.ver1 1 2 3" -echo Version 1 | ./alt.ver1 1 2 3