forked from michaelrsweet/epm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makesrcdist
executable file
·51 lines (42 loc) · 921 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 EPM.
#
if test $# = 0; then
echo Updating for snapshot...
svn up
rev=`svnversion . | sed -e '1,$s/[a-zA-Z]//g'`
version="5.0svn"
revision="-r$rev"
fileversion="5.0svn-r$rev"
url="."
else
echo Creating tag for release...
rev="1"
version=$1
revision=""
fileversion=$1
url="https://svn.easysw.com/public/epm/tags/release-$version"
svn copy https://svn.easysw.com/public/epm/trunk "$url" \
-m "Tag $version" || exit 1
fi
echo Exporting $fileversion...
rm -rf /tmp/epm-$version
svn export $url /tmp/epm-$version
echo Cleaning source directory...
cd /tmp/epm-$version
rm -f makesrcdist
cd ..
echo -n Archiving...gz
tar czf epm-$fileversion-source.tar.gz epm-$version
echo -n ...bz2
tar cjf epm-$fileversion-source.tar.bz2 epm-$version
echo "..."
echo Removing temporary files...
rm -rf epm-$version
echo "Done!"
#
# End of "$Id$".
#