Fix a few shellisms, configure for Z80 traditional and ANSI C only
[Ack-5.5.git] / first / get_makepars
index 36da886..6dc42a3 100755 (executable)
@@ -12,12 +12,12 @@ i86|minix|xenix3)
        WS=2 ; PS=2
        know_target=1
        ;;
-*)     trap "rm -f ws.c ws.o a.out t$$" 0 1 2 3 15
+*)     trap "rm -f ws.c ws.o a.out t__" 0 1 2 3 15
                cat > ws.c <<'EOF'
 #include <stdio.h>
 main()
 {
-       printf("WS=%d ; PS=%d\n", sizeof(int), sizeof(char *));
+       printf("WS=%d ; PS=%d\n", (int)sizeof(int), (int)sizeof(char *));
        exit(0);
 }
 EOF
@@ -26,9 +26,9 @@ EOF
                : We can find out ourselves what the word-size and
                : the pointer-size of the target machine is.
                cc ws.c 2>/dev/null
-               ./a.out > t$$
-               . t$$
-               rm -f t$$ a.out ws.[co]
+               ./a.out > t__
+               . ./t__
+               rm -f t__ a.out ws.[co]
        else
                : we will have to ask installer.
                echo $E_FLAG "Please give the word-size of the target-machine (sizeof(int)) in bytes: [$WS] $E_SFX"