X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=OSX%2FMakefile;fp=OSX%2FMakefile;h=28588ee8f613c19584b80cc1a9349a7cd31d09bc;hp=a4dff53c5f88313bfddf43d7acb84ce5a2d09a70;hb=ffcd2e7e3da122dbba5c4188e05d3a63d0ede26e;hpb=019de959b265701cd0c3fccbb61f2b69f06bf9ee diff --git a/OSX/Makefile b/OSX/Makefile index a4dff53c..28588ee8 100644 --- a/OSX/Makefile +++ b/OSX/Makefile @@ -111,10 +111,11 @@ updates.xml:: test_sig:: @ \ - U=../version.h ; \ + U=../utils/version.h ; \ V=`sed -n 's/[^0-9]*\([0-9]\.[0-9][^. ;]*\).*/\1/p' < $$U` ; \ - V=`echo $$V | sed 's/\.//g'` ; \ - ZIP="../archive/DaliClock-$$V.dmg" ; \ + BASE="xscreensaver-$$V" ; \ + OUTDIR="../archive" ; \ + DMG="$$OUTDIR/$$BASE.dmg" ; \ SIG=`sed -n 's/^.*dsaSignature="\(.*\)".*/\1/p' updates.xml` ; \ PUB="sparkle_dsa_pub.pem" ; \ NN="t.$$$$" ; \ @@ -124,7 +125,7 @@ test_sig:: echo "$$SIG " | base64 -D > "$$SIGB" ; \ set -e ; \ for OPENSSL in /usr/bin/openssl /opt/local/bin/openssl ; do \ - $$OPENSSL dgst -sha1 -binary < "$$ZIP" > "$$HASH" ; \ + $$OPENSSL dgst -sha1 -binary < "$$DMG" > "$$HASH" ; \ /bin/echo -n "$$OPENSSL `$$OPENSSL version`: " ; \ $$OPENSSL dgst -dss1 -verify "$$PUB" -signature "$$SIGB" "$$HASH" ; \ done ; \