]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
maketgz: set the right version in lib/libcurl.plist
authorDaniel Stenberg <daniel@haxx.se>
Tue, 8 Nov 2022 07:53:05 +0000 (08:53 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 8 Nov 2022 09:46:12 +0000 (10:46 +0100)
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

maketgz

diff --git a/maketgz b/maketgz
index 92ea871af2dd6679ef80c15558dd325e8e419f75..533a948884fd3ddf8ab808f06be3cba6a07b50f9 100755 (executable)
--- 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;