Skip to content

Commit

Permalink
Nitpick some things on the assets header generation script
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTMjugador committed Jun 30, 2024
1 parent 0ea90fe commit a6aa323
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions assets/generate_assets_header.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh -eu

if [ $# -lt 1 ] || [ ! -d "$1" ]; then
printf 'Syntax: %s [final asset directory]\n' "$(basename "$0")"
Expand All @@ -8,7 +8,8 @@ fi
# Delete output file if already present
rm -rf "$1"/assets.h 2>/dev/null || true

readonly TMP_ASSET_FILE=$(mktemp --tmpdir assets.h.XXX)
TMP_ASSET_FILE=$(mktemp --tmpdir assets.h.XXX)
readonly TMP_ASSET_FILE

printf '//Automatically generated header file. Do not edit!\n\n#pragma once\n\n#include <stddef.h>\n\n' > "$TMP_ASSET_FILE"

Expand Down

0 comments on commit a6aa323

Please sign in to comment.