forked from michaelrsweet/mxml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makesrcdist
executable file
·51 lines (37 loc) · 848 Bytes
/
makesrcdist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/sh
#
# "$Id$"
#
# makesrcdist - make a source distribution of mxml.
#
echo "Getting distribution..."
if test $# = 0; then
echo -n "Version number for distribution? "
read version
else
version=$1
fi
cd /tmp
if test $version = snapshot; then
url="https://svn.msweet.org/mxml/trunk"
else
url="svn+ssh://msweet.org/var/svn/mxml/tags/release-$version"
svn copy svn+ssh://msweet.org/var/svn/mxml/trunk "$url" \
-m "Tag $version" || exit 1
fi
rm -rf mxml-$version
svn export $url mxml-$version
cd mxml-$version
echo "Removing Subversion files and directories..."
rm -f makesrcdist TODO mvalidate.c
rm -rf www
rm -rf doc/mxml-cover* doc/hires
cd ..
echo "Making .tar.gz distribution..."
tar czf mxml-$version.tar.gz mxml-$version
echo "Removing distribution directory..."
rm -rf mxml-$version
echo "Done!"
#
# End of "$Id$".
#