From f2e33ad320822149ca52b30d4de2fc59a0ffa28d Mon Sep 17 00:00:00 2001 From: Nakidai Date: Mon, 30 Oct 2023 03:27:47 +0300 Subject: [PATCH] Add help --- configure | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/configure b/configure index 1daeb23..04228a3 100755 --- a/configure +++ b/configure @@ -1,5 +1,18 @@ #!/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:-}