Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7cc969938e | |||
| 0f3eeaa22e | |||
| 7b8f194466 |
24
dist/archlinux/PKGBUILD
vendored
24
dist/archlinux/PKGBUILD
vendored
@@ -1,24 +0,0 @@
|
|||||||
# Maintainer: MatMoul <matmoul@gmail.com>
|
|
||||||
|
|
||||||
pkgname=bootdisk
|
|
||||||
pkgver=0.1
|
|
||||||
pkgrel=1
|
|
||||||
pkgdesc="Simple command to boot device with QEMU/KVM"
|
|
||||||
arch=('any')
|
|
||||||
url="https://github.com/MatMoul/bootdisk"
|
|
||||||
license=('GPL3')
|
|
||||||
depends=('qemu' 'edk2-ovmf' 'swtpm')
|
|
||||||
provides=("bootdisk=${pkgver}")
|
|
||||||
source=("git://github.com/MatMoul/${pkgname}.git")
|
|
||||||
#source=("git://github.com/MatMoul/${pkgname}.git#branch=")
|
|
||||||
md5sums=('SKIP')
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd ${pkgname}
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
cd ${pkgname}
|
|
||||||
install -Dm755 "src/bootdisk" "${pkgdir}/usr/bin/bootdisk"
|
|
||||||
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
||||||
}
|
|
||||||
32
git-release
Executable file
32
git-release
Executable file
@@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
declare -r VERSION=${1}
|
||||||
|
declare -r MESSAGE=${2}
|
||||||
|
declare -r TAGBRANCH=main
|
||||||
|
declare CURRENTBRANCH=""
|
||||||
|
|
||||||
|
showHelp() {
|
||||||
|
echo git-release version
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ "${VERSION}" == "" ]; then
|
||||||
|
showHelp
|
||||||
|
echo ""
|
||||||
|
echo "no version provided!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
CURRENTBRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||||
|
|
||||||
|
if [ ! "${CURRENTBRANCH}" == "dev" ]; then
|
||||||
|
echo "You are not in dev branch!"
|
||||||
|
echo "Use dev branch to make a release!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
git checkout "${TAGBRANCH}"
|
||||||
|
git merge "${CURRENTBRANCH}"
|
||||||
|
git push
|
||||||
|
git tag -a "${VERSION}" -m "${MESSAGE}"
|
||||||
|
git push --tags
|
||||||
|
git checkout "${CURRENTBRANCH}"
|
||||||
@@ -34,7 +34,6 @@ initsecureboot(){
|
|||||||
}
|
}
|
||||||
initbootargs(){
|
initbootargs(){
|
||||||
bootargs="-boot menu=on,strict=on,reboot-timeout=1000 "
|
bootargs="-boot menu=on,strict=on,reboot-timeout=1000 "
|
||||||
bootargs+="-no-hpet "
|
|
||||||
bootargs+="-rtc base=${qemurtcbase} "
|
bootargs+="-rtc base=${qemurtcbase} "
|
||||||
bootargs+="-cpu host "
|
bootargs+="-cpu host "
|
||||||
bootargs+="-smp cores=${qemucpucores} "
|
bootargs+="-smp cores=${qemucpucores} "
|
||||||
|
|||||||
Reference in New Issue
Block a user