Fix man/fill_template for waf clean

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2023-08-29 15:56:02 +02:00
parent b93a1d8236
commit f4da9d25ca
No known key found for this signature in database
GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
d=""
[ -z "$SOURCE_DATE_EPOCH" ] || d=--date=@$SOURCE_DATE_EPOCH
if [ "$2" == "True" ]; then
if [ -n "$2" ] && [ "$2" = "True" ]; then
for i in *.0 ; do
sed -e "s/!VERSION!/${1}/g" -e "s/!DATE!/`date $d '+%B %Y'`/g" < ${i} > ${i%%0}1
done