summaryrefslogtreecommitdiff
path: root/maketgz
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-11-08 08:53:05 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-11-08 10:46:12 +0100
commit43232b59920558f4003accbb31cff5d9a9269497 (patch)
tree069ede137e32f29a8d7f3869484eabd4b39bbe4e /maketgz
parentf96d375a5bbc23440d362930878498c3209014ea (diff)
downloadcurl-43232b59920558f4003accbb31cff5d9a9269497.tar.gz
maketgz: set the right version in lib/libcurl.plist
Follow-up to e498a9b1fe5964a18eb2a3a99dc52 Make sure the tarball gets a version of the libcurl.plist file that is updated with the new version string. Reported-by: jvreelanda on github Fixes #9866 Closes #9867
Diffstat (limited to 'maketgz')
-rwxr-xr-xmaketgz4
1 files changed, 4 insertions, 0 deletions
diff --git a/maketgz b/maketgz
index 92ea871af..533a94888 100755
--- a/maketgz
+++ b/maketgz
@@ -64,6 +64,7 @@ numeric=`perl -e 'printf("%02x%02x%02x\n", '"$major, $minor, $patch);"`
HEADER=include/curl/curlver.h
CHEADER=src/tool_version.h
PLIST=lib/libcurl.plist
+PLISTO=$PLIST
if test -z "$only"; then
ext=".dist"
@@ -94,6 +95,9 @@ rm -f "$HEADER.bak"
sed -i.bak 's/#define CURL_VERSION .*/#define CURL_VERSION "'$curlversion'"/g' $CHEADER
rm -f "$CHEADER.bak"
+# Replace version number in plist file:
+sed "s/@CURL_PLIST_VERSION@/$curlversion/g" < $PLISTO.in >$PLIST
+
if test -n "$only"; then
# done!
exit;