ref: 7a1dfce1281c992e0163a4c71bea66152d827333
parent: 8c0fab2ccc7f5d5c4a611a4de4078c7af21963da
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Apr 13 05:59:29 EDT 2015
Fix sysselect.sh Oops, let's not fuck up the prefixes.
--- a/sysselect.sh
+++ b/sysselect.sh
@@ -15,32 +15,29 @@
uname_arch=`uname -m`
if test $uname_arch = "x86_64"; then
- arch=x64
+ arch="x64"
fi
+# check for system prefixes on .myr src
if test -f "$1+$sys-$arch.myr"; then
echo "$1+$sys-$arch.myr"
elif test -f $1+$posixy-$arch.myr; then
echo $1+$posixy-$arch.myr
elif test -f "$1+$sys.myr"; then
- echo "$1+$sys-$arch.myr"
+ echo "$1+$sys.myr"
elif test -f $1+$posixy.myr; then
- echo $1+$posixy-$arch.myr
-elif test -f "$1+$sys.myr"; then
- echo "$1+$sys-$arch.myr"
-elif test -f $1+$posixy.myr; then
- echo $1+$posixy-$arch.myr
-
+ echo $1+$posixy.myr
+elif test -f $1+$arch; then
+ echo $1+$arch.myr
+# check for system prefixes on .s src
elif test -f "$1+$sys-$arch.s"; then
echo "$1+$sys-$arch.s"
elif test -f $1+$posixy-$arch.s; then
echo $1+$posixy-$arch.s
elif test -f "$1+$sys.s"; then
- echo "$1+$sys-$arch.s"
+ echo "$1+$sys.s"
elif test -f $1+$posixy.s; then
- echo $1+$posixy-$arch.s
-elif test -f "$1+$sys.s"; then
- echo "$1+$sys-$arch.s"
-elif test -f $1+$posixy.s; then
- echo $1+$posixy-$arch.s
+ echo $1+$posixy.s
+elif test -f $1+$arch; then
+ echo $1+$arch.s
fi