summaryrefslogtreecommitdiff
path: root/support/release.sh
blob: b2740d508c58d9d4764eefca850f0d91296ac864 (plain)
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
#!/bin/sh
set -e
set -x

tmp=/tmp/myr-release
rm -rf $tmp
mkdir -p $tmp
cp -r ../mc $tmp/
(
	cd $tmp/mc
	git clean -xfd
	rm -rf .git
)

(
	cd $tmp
	tar cvf myrddin-$1.tar mc
	bzip2 myrddin-$1.tar
	tar cvf myrddin-$1.tar mc
	gzip myrddin-$1.tar
	tar cvf myrddin-$1.tar mc
	xz myrddin-$1.tar
)

cp $tmp/myrddin-$1.tar.* .