1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 07:38:49 -05:00

newer, nicer

This commit is contained in:
Daniel Stenberg 2003-10-31 08:08:21 +00:00
parent 39f673874f
commit ffc58c6620

24
maketgz
View File

@ -9,8 +9,6 @@ if [ -z "$version" ]; then
exit exit
fi fi
echo $version
libversion="$version" libversion="$version"
# #
@ -30,27 +28,15 @@ CHEADER=src/version.h
# Replace version number in header file: # Replace version number in header file:
sed -e 's/^#define LIBCURL_VERSION .*/#define LIBCURL_VERSION "'$libversion'"/g' \ sed -e 's/^#define LIBCURL_VERSION .*/#define LIBCURL_VERSION "'$libversion'"/g' \
-e 's/^#define LIBCURL_VERSION_NUM .*/#define LIBCURL_VERSION_NUM 0x'$numeric'/g' \ -e 's/^#define LIBCURL_VERSION_NUM .*/#define LIBCURL_VERSION_NUM 0x'$numeric'/g' \
$HEADER >$HEADER.new $HEADER >$HEADER.dist
# Save old header file
cp -p $HEADER $HEADER.old
# Make new header:
mv $HEADER.new $HEADER
# Replace version number in header file: # Replace version number in header file:
sed 's/#define CURL_VERSION.*/#define CURL_VERSION "'$curlversion'"/g' $CHEADER >$CHEADER.new sed 's/#define CURL_VERSION.*/#define CURL_VERSION "'$curlversion'"/g' $CHEADER >$CHEADER.dist
echo "curl version $curlversion" echo "curl version $curlversion"
echo "libcurl version $libversion" echo "libcurl version $libversion"
echo "libcurl numerical $numeric" echo "libcurl numerical $numeric"
# Save old header file
cp -p $CHEADER $CHEADER.old
# Make new header:
mv $CHEADER.new $CHEADER
findprog() findprog()
{ {
file="$1" file="$1"
@ -91,10 +77,10 @@ fi
# #
# Make sure we have updated HTML versions of all man pages: # Make sure we have updated HTML versions of all man pages:
# #
make html make -s html
# And the PDF versions # And the PDF versions
make pdf make -s pdf
############################################################################ ############################################################################
# #
@ -102,7 +88,7 @@ make pdf
# #
targz="curl-$version.tar.gz" targz="curl-$version.tar.gz"
make dist make -s dist VERSION=$version
############################################################################ ############################################################################
# #