Skip to content

Commit 45c7857

Browse files
committed
Prep for release - source and DMGs.
1 parent cafc0ba commit 45c7857

File tree

2 files changed

+17
-57
lines changed

2 files changed

+17
-57
lines changed

Makefile.in

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,15 @@ install:
7373

7474

7575
#
76-
# Sign the HTMLDOC application bundle...
76+
# Sign the HTMLDOC application bundle and make a disk image...
7777
#
7878

7979
IDENTITY = "Developer ID Application: Michael Sweet (RU58A2256H)"
80+
VERSION = @SVERSION@
8081

81-
codesign:
82+
dmg:
8283
echo Signing HTMLDOC application bundle
8384
codesign -s $(IDENTITY) htmldoc/htmldoc.app
85+
echo Making disk image...
86+
rm -f htmldoc-$(VERSION)-macos.dmg
87+
hdiutil create -srcfolder htmldoc/htmldoc.app htmldoc-$(VERSION)-macos.dmg

tools/makesrcdist

Lines changed: 11 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,21 @@
11
#!/bin/sh
22
#
3-
# "$Id$"
4-
#
53
# makesrcdist - make a source distribution of HTMLDOC.
64
#
75

8-
# Make sure we are running in the right directory...
9-
if test ! -f tools/makesrcdist; then
10-
echo "Run this script from the top-level HTMLDOC source directory, e.g.:"
11-
echo ""
12-
echo " tools/makesrcdist $*"
13-
echo ""
14-
exit 1
6+
if test $# != 1; then
7+
echo "Usage: tools/makesrcdist version"
8+
exit 1
159
fi
1610

17-
if test $# = 0; then
18-
echo Updating for snapshot...
19-
svn up
20-
rev=`svnversion . | sed -e '1,$s/[a-zA-Z]//g'`
21-
version="1.8svn"
22-
fileversion="1.8svn-r$rev"
23-
url="."
24-
else
25-
echo Creating tag for release...
26-
rev="1"
27-
version=$1
28-
fileversion=$1
29-
url="svn+ssh://msweet.org/var/svn/htmldoc/tags/release-$version"
30-
31-
svn copy svn+ssh://msweet.org/var/svn/htmldoc/branches/branch-1.8 \
32-
"$url" -m "Tag $version" || exit 1
33-
fi
34-
35-
echo Exporting $fileversion...
36-
rm -rf /tmp/htmldoc-$version
37-
svn export $url /tmp/htmldoc-$version
38-
39-
echo Updating version information...
40-
cd /tmp/htmldoc-$version
11+
version=$1
4112

42-
sed -e '1,$s/^SVERSION=.*/SVERSION="'$version'"/' \
43-
<configure.ac >configure.ac.new
44-
mv configure.ac.new configure.ac
13+
echo Creating tag for release...
14+
git tag -m "Tag $version" v$version
15+
git push origin v$version
4516

46-
echo Configuring...
47-
autoconf -f
48-
rm -rf autom4te*.cache
49-
rm -rf standards
50-
rm -rf tools
51-
cd ..
17+
echo Creating htmldoc-$version-source.tar.gz...
18+
git archive --format tar HEAD | gzip -v9 >htmldoc-$version-source.tar.gz
5219

53-
echo -n Archiving...gz
54-
tar czf htmldoc-$fileversion-source.tar.gz htmldoc-$version
55-
echo -n ...bz2
56-
tar cjf htmldoc-$fileversion-source.tar.bz2 htmldoc-$version
57-
echo -n ...zip
58-
zip -r9 htmldoc-$fileversion-source.zip htmldoc-$version
59-
echo "..."
60-
61-
echo "Done."
62-
63-
#
64-
# End of "$Id$".
65-
#
20+
echo Creating htmldoc-$version-source.zip...
21+
git archive --format zip -9 HEAD >htmldoc-$version-source.zip

0 commit comments

Comments
 (0)