File generate_source.sh of Package multimc

#!/bin/bash

if [[ -z "${1+set}" ]]; then
	echo "please invoke with the version (branch) as parameter"
	exit 1
fi

if [[ -d "multimc-$1" ]]; then
	pushd "multimc-$1"
	git fetch
else
	git clone --recurse-submodules https://github.com/MultiMC/Launcher.git multimc-$1/
	pushd multimc-$1/
fi

git checkout $1
popd

tar -cJf multimc-$1.tar.xz multimc-$1/
openSUSE Build Service is sponsored by