mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-09-03 23:57:23 -04:00
Add initial packaging script (currently only for generating source PKGBUILD)
This commit is contained in:
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
# get version number from backend TODO embed Go code that reads the value of LibmuttonVersion
|
||||
version=$(grep 'LibmuttonVersion = "' ../src/backend/1globals.go | cut -c22-26)
|
||||
|
||||
# get revision number from user input, fallback to 1 if not provided
|
||||
if [ -z "$2" ]; then
|
||||
revision=1
|
||||
else
|
||||
revision="$2"
|
||||
fi
|
||||
|
||||
# ensure output directory exists
|
||||
mkdir -p ./output
|
||||
|
||||
case "$1" in
|
||||
pkgbuild-git-stable)
|
||||
. ./pkgbuild-git-stable.sh
|
||||
create_pkgbuild_git_stable
|
||||
;;
|
||||
*)
|
||||
printf '\nusage: package.sh [target] <revision>\n\ntargets: pkgbuild-git-stable\n\n'
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user