aboutsummaryrefslogtreecommitdiff
path: root/create_TZR.c.sh
diff options
context:
space:
mode:
Diffstat (limited to 'create_TZR.c.sh')
-rwxr-xr-xcreate_TZR.c.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/create_TZR.c.sh b/create_TZR.c.sh
index 0057a60..edccc09 100755
--- a/create_TZR.c.sh
+++ b/create_TZR.c.sh
@@ -10,10 +10,12 @@ for FILE in sources/*.h sources/*.c; do
grep -v '^#include' "$FILE" | grep -v "^#pragma" >>"$BUILDDIR/sources"
done
-sort -u "$BUILDDIR/includes" >"$BUILDDIR/out"
+cp _head.c "$BUILDDIR/out"
+sort -u "$BUILDDIR/includes" >>"$BUILDDIR/out"
printf '\n' >>"$BUILDDIR/out"
cat "$BUILDDIR/sources" >>"$BUILDDIR/out"
printf '\n' >>"$BUILDDIR/out"
+cat _tail.c >>"$BUILDDIR/out"
git log -n1 --format="/* commit hash: %H */" >>"$BUILDDIR/out"
cp "$BUILDDIR/out" TZR.c