diff options
author | nikita <nikita@n0.is> | 2020-04-30 17:47:18 +0200 |
---|---|---|
committer | nikita <nikita@n0.is> | 2020-04-30 17:47:18 +0200 |
commit | c8473413d9e34d8d5155cf19b0c8545d15316bec (patch) | |
tree | 1b9d53f153bcce9f7c9988322bc46cbc953e9ddb /maketgz | |
parent | d94489a2b8920106929f1cbcc84e9af193737290 (diff) | |
download | gnurl-c8473413d9e34d8d5155cf19b0c8545d15316bec.tar.gz gnurl-c8473413d9e34d8d5155cf19b0c8545d15316bec.tar.bz2 gnurl-c8473413d9e34d8d5155cf19b0c8545d15316bec.zip |
maketgz: OSS'ificate for now
Diffstat (limited to 'maketgz')
-rwxr-xr-x | maketgz | 27 |
1 files changed, 18 insertions, 9 deletions
@@ -154,7 +154,11 @@ tardir="gnurl-$version" # MAKE=gmake is required. # gmake -sj1 dist VERSION=$version # make -sj1 dist VERSION=$version -gmake dist VERSION=$version +if test `uname` = Linux; then + make dist VERSION=$version +else + gmake dist VERSION=$version +fi # Now make an Z archive from the tar.gz original @@ -218,13 +222,18 @@ echo "maketgz report:" echo "" 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 +# TODO: Adjust to work on Linux and NetBSD (sum, etc) +echo "Signing the files..." +if type "gpg2" >/dev/null 2>&1; then + if test `uname` = "NetBSD"; then + gpg2 -b -a $targz && gpg2 -b -a $compressfile && gpg2 -b -a $paxz + 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 + fi +fi |