File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ GIT_ARCHIVE="$1"
14
14
DISTNAME=" $2 "
15
15
16
16
git archive --prefix=" ${DISTNAME} /" HEAD | tar -xp
17
+
18
+ # Generate correct build info file from git, before we lose git
19
+ GIT_BUILD_INFO=" $( share/genbuild.sh /dev/stdout) "
20
+ sed ' s/\/\/ No build information available/' " ${GIT_BUILD_INFO} " ' /' -i " ${DISTNAME} /share/genbuild.sh"
21
+
17
22
cd " ${DISTNAME} "
18
23
19
24
./autogen.sh
Original file line number Diff line number Diff line change @@ -45,7 +45,9 @@ if [ -n "$GIT_TAG" ]; then
45
45
elif [ -n " $GIT_COMMIT " ]; then
46
46
NEWINFO=" #define BUILD_GIT_COMMIT \" $GIT_COMMIT \" "
47
47
else
48
- NEWINFO=" // No build information available"
48
+ # NOTE: The NEWINFO line below this comment gets replaced by a string-match in contrib/guix/libexec/make_release_tarball.sh
49
+ # If changing it, update the script too!
50
+ NEWINFO=' // No build information available'
49
51
fi
50
52
51
53
# only update build.h if necessary
You can’t perform that action at this time.
0 commit comments