summaryrefslogtreecommitdiff
path: root/maketgz
diff options
context:
space:
mode:
Diffstat (limited to 'maketgz')
-rwxr-xr-xmaketgz118
1 files changed, 65 insertions, 53 deletions
diff --git a/maketgz b/maketgz
index 55a57c1b3..b6086949f 100755
--- a/maketgz
+++ b/maketgz
@@ -59,9 +59,9 @@ find . -name "*.dist" -a ! -name Makefile.dist -exec rm {} \;
numeric=`perl -e 'printf("%02x%02x%02x\n", '"$major, $minor, $patch);"`
-HEADER=include/curl/curlver.h
+HEADER=include/gnurl/curlver.h
CHEADER=src/tool_version.h
-PLIST=lib/libcurl.plist
+PLIST=lib/libgnurl.plist
if test -z "$only"; then
ext=".dist"
@@ -102,8 +102,8 @@ if test -n "$only"; then
fi
echo "curl version $curlversion"
-echo "libcurl version $libversion"
-echo "libcurl numerical $numeric"
+echo "libgnurl version $libversion"
+echo "libgnurl numerical $numeric"
echo "datestamp $datestamp"
findprog() {
@@ -120,19 +120,13 @@ findprog() {
return 0
}
-############################################################################
-#
# Enforce a rerun of configure (updates the VERSION)
-#
echo "Re-running config.status"
-./config.status --recheck >/dev/null
+# CC=clang ./config.status --recheck --disable-ftp --disable-file --disable-ldap --disable-rtsp --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher --without-ssl --disable-libpsl --without-libpsl --without-librtmp --disable-ntlm-wb >/dev/null
+./config.status --recheck > /dev/null
-############################################################################
-#
-# automake is needed to run to make a non-GNU Makefile.in if Makefile.am has
-# been modified.
-#
+# automake is needed to run to make a non-GNU Makefile.in if Makefile.am has been modified.
if { findprog automake >/dev/null 2>/dev/null; } then
echo "- Could not find or run automake, I hope you know what you're doing!"
@@ -141,52 +135,42 @@ else
automake --include-deps Makefile >/dev/null
fi
-############################################################################
-#
-# Modify the man pages to display the version number and date.
-#
-
-echo "update man pages"
-./scripts/updatemanpages.pl $version
-
# make the generated file newer than the man page
touch src/tool_hugehelp.c
-############################################################################
-#
# Update the IDE files
-echo "make vc-ide"
-make -s vc-ide
+# echo "make vc-ide"
+# make -s vc-ide
echo "produce CHANGES"
git log --pretty=fuller --no-color --date=short --decorate=full -1000 | ./scripts/log2changes.pl > CHANGES.dist
-############################################################################
-#
# Now run make dist to generate a tar.gz archive
-#
echo "make dist"
-targz="curl-$version.tar.gz"
-make -sj dist VERSION=$version
+targz="gnurl-$version.tar.gz"
+tarball="gnurl-$version.tar"
+tardir="gnurl-$version"
+# TODO: Here's something we need to fix for nbsd make to work.
+# MAKE=gmake is required.
+gmake -sj1 dist VERSION=$version
-############################################################################
-#
-# Now make a bz2 archive from the tar.gz original
-#
-
-bzip2="curl-$version.tar.bz2"
-echo "Generating $bzip2"
-gzip -dc $targz | bzip2 --best > $bzip2
+# Now make an Z archive from the tar.gz original
-############################################################################
-#
-# Now make an xz archive from the tar.gz original
-#
+compressfile="gnurl-$version.tar.Z"
+tempdir=".builddir"
-xz="curl-$version.tar.xz"
-echo "Generating $xz"
-gzip -dc $targz | xz -6e - > $xz
+makeZ() {
+ rm -rf $tempdir
+ mkdir $tempdir
+ cd $tempdir
+ pax -rz < ../$targz
+ pax -wvf $tarball $tardir
+ compress -vc $tarball > $compressfile
+ mv $compressfile ../
+ cd ..
+ rm -rf $tempdir
+}
############################################################################
#
@@ -203,15 +187,43 @@ makezip() {
rm -rf $tempdir
}
-zip="curl-$version.zip"
-echo "Generating $zip"
-tempdir=".builddir"
-makezip
+###########################################################################
+#
+# pax part
+#
+paxfile="gnurl-$version.pax"
+paxz="gnurl-$version.pax.Z"
+
+makepax(){
+ rm -rf $tempdir
+ mkdir $tempdir
+ cd $tempdir
+ pax -rz < ../$targz
+ pax -wvf $paxfile $tardir
+ compress -cv $paxfile > $paxz
+ mv $paxz ../
+ cd ..
+ rm -rf $tempdir
+}
+
+echo "Generating $compressfile"
+makeZ
+
+printf "%s" "Generating $paxz"
+makepax
echo "------------------"
echo "maketgz report:"
echo ""
-ls -l $targz $bzip2 $zip $xz
-
-echo "Run this:"
-echo "gpg -b -a $targz && gpg -b -a $bzip2 && gpg -b -a $zip && gpg -b -a $xz"
+ls -l $targz $compressfile $paxz
+
+echo "Signing the files..."
+gpg2 -b -a $targz && gpg2 -b -a $compressfile && gpg2 -b -a $paxz
+# The lines below assume that you are me,
+# in other words you do this on a NetBSD system.
+rm -f gnurl-$version.sum.txt
+sha1 $targz $compressfile $paxz >> gnurl-$version.sum.txt
+sum -a SHA512 $targz $compressfile $paxz >> gnurl-$version.sum.txt
+rmd160 $targz $compressfile $paxz >> gnurl-$version.sum.txt
+echo "Signing the sum file..."
+gpg2 -b -a gnurl-$version.sum.txt