Autocreate config dir attempt 2

pull/1/head
Nakidai 2023-10-30 03:15:24 +03:00
parent 5f6fc8f212
commit 2e05977e12
Signed by untrusted user who does not match committer: nakidai
GPG Key ID: 914675D395210A97
1 changed files with 7 additions and 2 deletions

9
configure vendored
View File

@ -1,7 +1,5 @@
#!/bin/sh #!/bin/sh
mkdir config
CC=${CC:-cc} CC=${CC:-cc}
RM=${RM:-rm -f} RM=${RM:-rm -f}
CFLAGS=${CFLAGS:-} CFLAGS=${CFLAGS:-}
@ -23,6 +21,13 @@ echo "Size: $SIZE"
echo "Start x: $DEFX" echo "Start x: $DEFX"
echo "Start y: $DEFY" echo "Start y: $DEFY"
if [ ! test -d config ]; then
if [ test-f config ]; then
rm config
fi
mkdir config
fi
echo "CC = $CC echo "CC = $CC
RM = $RM RM = $RM
CFLAGS = $CFLAGS CFLAGS = $CFLAGS