Rename try.me.sh scripts to try.sh
This is to make them consistent with the others called try.sh which seems better named as it's under the try section. The manifest files in tmp/ have been updated as well, including the macOS Numbers file.
This commit is contained in:
1 parent
0c6b533363
commit
e2266e1aa4
15 files changed
+31
-31
No files matched your search
Executable
+34
@@ -0,0 +1,34 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
make clobber alt all >/dev/null 2>&1
|
||||
|
||||
|
||||
TARGET="anonymous.ten"
|
||||
if [[ -f "$TARGET" ]]; then
|
||||
echo "$ cp $TARGET anonymous.ten.bak" 1>&2
|
||||
cp "$TARGET" anonymous.ten.bak
|
||||
echo "$ ./anonymous $TARGET" 1>&2
|
||||
./anonymous "$TARGET"
|
||||
echo "$ ./$TARGET" 1>&2
|
||||
./"$TARGET"
|
||||
echo "$ diff -s $TARGET anonymous.ten.bak" 1>&2
|
||||
diff -s "$TARGET" anonymous.ten.bak
|
||||
echo "$ od -t x1 $TARGET > ten.od" 1>&2
|
||||
od -t x1 "$TARGET" > ten.od
|
||||
echo "$ od -t x1 anonymous.ten.bak > ten.bak.od" 1>&2
|
||||
od -t x1 anonymous.ten.bak > ten.bak.od
|
||||
echo "$ diff ten.bak.od ten.od" 1>&2
|
||||
diff ten.bak.od ten.od
|
||||
echo "$ ./$TARGET > ten.txt" 1>&2
|
||||
./"$TARGET" > ten.txt
|
||||
echo "$ ./anonymous.ten.bak > ten.bak.txt" 1>&2
|
||||
./anonymous.ten.bak > ten.bak.txt
|
||||
echo "$ diff -s ten.txt ten.bak.txt" 1>&2
|
||||
diff -s ten.txt ten.bak.txt
|
||||
else
|
||||
echo "cannot compile anonymous.ten.c as 32-bit, sorry."
|
||||
echo "will run 64-bit version directly."
|
||||
sleep 3
|
||||
echo "$ ./$TARGET.64"
|
||||
./"$TARGET".64
|
||||
fi
|
||||
Reference in new issue
Block a user