Mercurial > dropbear
diff release.sh @ 1814:f78e67527731
Add configure script to version control. Set timezone for release tarball
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 31 Mar 2021 23:23:14 +0800 |
parents | 552bb9b4f16a |
children | 209711833f15 |
line wrap: on
line diff
--- a/release.sh Wed Mar 31 23:21:30 2021 +0800 +++ b/release.sh Wed Mar 31 23:23:14 2021 +0800 @@ -36,17 +36,15 @@ hg archive "$RELDIR" || exit 2 -(cd "$RELDIR" && autoconf && autoheader) || exit 2 - -rm -r "$RELDIR/autom4te.cache" || exit 2 - rm "$RELDIR/.hgtags" RELDATE=$(head -n1 CHANGES | cut -d - -f 2) +# timezone keeps it consistent, choose a plausible release time +RELTIME="22:30:00 +0800" # from https://reproducible-builds.org/docs/archives/ TAROPTS="--sort=name --owner=0 --group=0 --numeric-owner" -(cd "$RELDIR/.." && $TAR cjf $ARCHIVE $TAROPTS --mtime="$RELDATE" `basename "$RELDIR"`) || exit 2 +(cd "$RELDIR/.." && $TAR cjf $ARCHIVE $TAROPTS --mtime="$RELDATE $RELTIME" `basename "$RELDIR"`) || exit 2 ls -l $ARCHIVE openssl sha256 $ARCHIVE