summarylogtreecommitdiffstats
path: root/create.sh
blob: d0cc094ce37d788f34030baeb276e623faafebf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

if [[ ! $# -eq "2" ]]; then
	echo "Usage:"
	echo "$0 version omege_version"
	exit 1
fi

rm -v TerasologyOmega.zip{,.part}
rm -rv src/

echo "Setting version to $1"
sed -i "s/pkgver=.*/pkgver=$1/g" PKGBUILD

echo "Setting Omega version to $2"
sed -i "s/_omega_ver=.*/_omega_ver=$2/g" PKGBUILD

echo updpkgsums
updpkgsums
chmod -v 644 PKGBUILD
echo mkaurball -f
mkaurball -f
makepkg