Permalink
Browse files

newer, nicer

  • Loading branch information...
1 parent 39f6738 commit ffc58c66202451386b27539bf092c463796dc24a @bagder bagder committed Oct 31, 2003
Showing with 5 additions and 19 deletions.
  1. +5 −19 maketgz
View
24 maketgz
@@ -9,8 +9,6 @@ if [ -z "$version" ]; then
exit
fi
-echo $version
-
libversion="$version"
#
@@ -30,27 +28,15 @@ CHEADER=src/version.h
# Replace version number in header file:
sed -e 's/^#define LIBCURL_VERSION .*/#define LIBCURL_VERSION "'$libversion'"/g' \
-e 's/^#define LIBCURL_VERSION_NUM .*/#define LIBCURL_VERSION_NUM 0x'$numeric'/g' \
- $HEADER >$HEADER.new
-
-# Save old header file
-cp -p $HEADER $HEADER.old
-
-# Make new header:
-mv $HEADER.new $HEADER
+ $HEADER >$HEADER.dist
# 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 "libcurl version $libversion"
echo "libcurl numerical $numeric"
-# Save old header file
-cp -p $CHEADER $CHEADER.old
-
-# Make new header:
-mv $CHEADER.new $CHEADER
-
findprog()
{
file="$1"
@@ -91,18 +77,18 @@ fi
#
# Make sure we have updated HTML versions of all man pages:
#
-make html
+make -s html
# And the PDF versions
-make pdf
+make -s pdf
############################################################################
#
# Now run make dist to generate a tar.gz archive
#
targz="curl-$version.tar.gz"
-make dist
+make -s dist VERSION=$version
############################################################################
#

0 comments on commit ffc58c6

Please sign in to comment.