1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
Description: make generated files reproducible
Adding a comment to mention that a file is generated is fine.
.
But this comment must not contain the absolute path of the generating file, which is given by $0.
.
Hardcoding the file name is not elegant, but it's simple...
Bug: https://github.com/Raku/nqp/issues/675
Bug-Debian: https://bugs.debian.org/971617
Author: dod
Index: nqp/tools/build/gen-cat.pl
===================================================================
--- nqp.orig/tools/build/gen-cat.pl
+++ nqp/tools/build/gen-cat.pl
@@ -15,7 +15,7 @@ if ($stage ne "stage1" && $stage ne "sta
}
print <<"END_HEAD";
-# This file automatically generated by $0
+# This file automatically generated by gen-cat.pl
END_HEAD
Index: nqp/tools/build/generate-constants.pl
===================================================================
--- nqp.orig/tools/build/generate-constants.pl
+++ nqp/tools/build/generate-constants.pl
@@ -9,7 +9,7 @@ print <<"END_HEADER";
# DO NOT EDIT THIS FILE.
#
# This file is generated automatically from
-# $0
+# generate-constants.pl
#
# Any changes made here will be lost.
#
|