mirror of
https://github.com/curl/curl.git
synced 2025-01-12 13:55:11 +08:00
maketgz: set the right version in lib/libcurl.plist
Follow-up to e498a9b1fe
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
This commit is contained in:
parent
f96d375a5b
commit
43232b5992
4
maketgz
4
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;
|
||||
|
Loading…
Reference in New Issue
Block a user