comparison 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
comparison
equal deleted inserted replaced
1813:b63f1e803f70 1814:f78e67527731
34 exit 1 34 exit 1
35 fi 35 fi
36 36
37 hg archive "$RELDIR" || exit 2 37 hg archive "$RELDIR" || exit 2
38 38
39 (cd "$RELDIR" && autoconf && autoheader) || exit 2
40
41 rm -r "$RELDIR/autom4te.cache" || exit 2
42
43 rm "$RELDIR/.hgtags" 39 rm "$RELDIR/.hgtags"
44 40
45 RELDATE=$(head -n1 CHANGES | cut -d - -f 2) 41 RELDATE=$(head -n1 CHANGES | cut -d - -f 2)
42 # timezone keeps it consistent, choose a plausible release time
43 RELTIME="22:30:00 +0800"
46 44
47 # from https://reproducible-builds.org/docs/archives/ 45 # from https://reproducible-builds.org/docs/archives/
48 TAROPTS="--sort=name --owner=0 --group=0 --numeric-owner" 46 TAROPTS="--sort=name --owner=0 --group=0 --numeric-owner"
49 (cd "$RELDIR/.." && $TAR cjf $ARCHIVE $TAROPTS --mtime="$RELDATE" `basename "$RELDIR"`) || exit 2 47 (cd "$RELDIR/.." && $TAR cjf $ARCHIVE $TAROPTS --mtime="$RELDATE $RELTIME" `basename "$RELDIR"`) || exit 2
50 48
51 ls -l $ARCHIVE 49 ls -l $ARCHIVE
52 openssl sha256 $ARCHIVE 50 openssl sha256 $ARCHIVE
53 echo Done to 51 echo Done to
54 echo "$ARCHIVE" 52 echo "$ARCHIVE"