Compare commits
No commits in common. "f89b46a60db1c121c80988e9dd22ea0b000e4a57" and "b51afc628f65e22d0e9ddf63d94ebf9bfbe9948d" have entirely different histories.
f89b46a60d
...
b51afc628f
|
@ -1,18 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [[ "$*" == *"--help"* ]] || [[ "$*" == *"-h"* ]]
|
||||
then
|
||||
echo "Use environment variables to pass values:
|
||||
CC - compiler (default: cc)
|
||||
CFLAGS - flags for compiler
|
||||
LDFLAGS - flags for linker
|
||||
OUT - out file (default: game
|
||||
SIZE - size of game field
|
||||
DEFX - start x
|
||||
DEFY - start y"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
CC=${CC:-cc}
|
||||
RM=${RM:-rm -f}
|
||||
CFLAGS=${CFLAGS:-}
|
||||
|
@ -34,8 +21,8 @@ echo "Size: $SIZE"
|
|||
echo "Start x: $DEFX"
|
||||
echo "Start y: $DEFY"
|
||||
|
||||
if ! test -d config; then
|
||||
if test -f config; then
|
||||
if [ ! test -d config ]; then
|
||||
if [ test-f config ]; then
|
||||
rm config
|
||||
fi
|
||||
mkdir config
|
||||
|
|
Loading…
Reference in New Issue