diff options
author | kdx <kikoodx@paranoici.org> | 2023-04-28 12:41:18 +0200 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-04-28 12:41:18 +0200 |
commit | 6044a3bac4433e9ce8d114bdbc180ca7b48b2344 (patch) | |
tree | d9e6aae40a6a12f501a3f5dca884027f481b9a2c /create_TZR.c.sh | |
parent | 2e72947f3e58f57574f971d4d8c3b3b63be557a5 (diff) | |
download | tzr-6044a3bac4433e9ce8d114bdbc180ca7b48b2344.tar.gz |
embed license in out files
Diffstat (limited to 'create_TZR.c.sh')
-rwxr-xr-x | create_TZR.c.sh | 4 |
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 |