diff options
context:
space:
mode:
Diffstat (limited to 'tools/release-build.sh')
-rwxr-xr-xtools/release-build.sh7
1 file changed, 5 insertions, 2 deletions
diff --git a/tools/release-build.sh b/tools/release-build.sh
index babf008..a22b70e 100755
--- a/tools/release-build.sh
+++ b/tools/release-build.sh
@@ -1,4 +1,5 @@
#!/bin/sh
+
# Build cgit for a release with Linux hardening flags, which are ELF and GCC or
# Clang specific. The flags add a stack protector, fortified libc calls, a
# position independent executable, and full RELRO. By default Lua is pinned off
@@ -8,7 +9,8 @@
set -eu
-if [ "$#" -gt 1 ]; then
+if test "$#" -gt 1
+then
echo "usage: $0 [lua]" >&2
exit 2
fi
@@ -71,4 +73,5 @@ CGIT_EXTRA_CFLAGS="-Wformat -Wformat-security -Werror=format-security"
# flags, and cleanall rather than clean because only cleanall descends into
# vendor/git.
make cleanall
-exec make "$@" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" CGIT_EXTRA_CFLAGS="$CGIT_EXTRA_CFLAGS"
+exec make "$@" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
+ CGIT_EXTRA_CFLAGS="$CGIT_EXTRA_CFLAGS"