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

tmp=/tmp/myr-release
rm -rf $tmp
mkdir -p $tmp
cp -r ../mc $tmp/
(
	cd $tmp/mc
	git reset --hard
	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.* .