diff options
Diffstat (limited to 'gen/strgen.sh')
-rwxr-xr-x | gen/strgen.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gen/strgen.sh b/gen/strgen.sh index 2b41da4a4a48..ca67fda3ae71 100755 --- a/gen/strgen.sh +++ b/gen/strgen.sh @@ -52,17 +52,19 @@ label="$5" define="$6" remove_tabs="$7" +tmpinput=$(mktemp -t "${input##*/}") + if [ "$exclude" -ne 0 ]; then - filter_text "$input" "$input.tmp" "E" + filter_text "$input" "$tmpinput" "E" else - filter_text "$input" "$input.tmp" "A" + filter_text "$input" "$tmpinput" "A" fi -input="$input.tmp" - -exec < "$input" +exec < "$tmpinput" exec > "$output" +rm -f "$tmpinput" + if [ -n "$label" ]; then nameline="const char *${label} = \"${input}\";" labelexternline="extern const char *${label};" |