Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into fix-mxlinux-releases
Browse files Browse the repository at this point in the history
  • Loading branch information
TuxVinyards committed Oct 15, 2024
2 parents aabae7e + 84595dc commit bce796b
Show file tree
Hide file tree
Showing 14 changed files with 38 additions and 41 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/flake-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: DeterminateSystems/nix-installer-action@v13
- uses: DeterminateSystems/magic-nix-cache-action@v7
- uses: DeterminateSystems/flake-checker-action@v8
- uses: DeterminateSystems/nix-installer-action@v14
- uses: DeterminateSystems/magic-nix-cache-action@v8
- uses: DeterminateSystems/flake-checker-action@v9
6 changes: 3 additions & 3 deletions .github/workflows/flake-updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: DeterminateSystems/nix-installer-action@v13
- uses: DeterminateSystems/magic-nix-cache-action@v7
- uses: DeterminateSystems/update-flake-lock@v23
- uses: DeterminateSystems/nix-installer-action@v14
- uses: DeterminateSystems/magic-nix-cache-action@v8
- uses: DeterminateSystems/update-flake-lock@v24
with:
pr-title: "chore: update flake.lock"
4 changes: 2 additions & 2 deletions .github/workflows/test-build-quickemu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ jobs:
- name: "Checkout 🥡"
uses: "actions/checkout@v4"
- name: "Install Nix ❄️"
uses: "DeterminateSystems/nix-installer-action@v13"
uses: "DeterminateSystems/nix-installer-action@v14"
- name: "Enable Magic Nix Cache 🪄"
uses: "DeterminateSystems/magic-nix-cache-action@v7"
uses: "DeterminateSystems/magic-nix-cache-action@v8"
- name: "Build & Test .nix ❄️"
run: |
nix build .#quickemu
Expand Down
10 changes: 6 additions & 4 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,18 @@ datadir := $(datarootdir)
mandir := $(datarootdir)/man
bindir := $(PREFIX)/bin

all: quickget.1 quickemu.1 quickemu_conf.1
all: quickget.1 quickemu.1 quickemu_conf.5

clean:
rm *.1
rm *.1 *.5

install_docs: all
install -d $(DESTDIR)$(mandir)/man1
install -d $(DESTDIR)$(mandir)/man5
install -m 644 quickget.1 $(DESTDIR)$(mandir)/man1
install -m 644 quickemu.1 $(DESTDIR)$(mandir)/man1
install -m 644 quickemu_conf.1 $(DESTDIR)$(mandir)/man1
install -m 644 quickemu_conf.5 $(DESTDIR)$(mandir)/man5
rm -f $(DESTDIR)$(mandir)/man1/quickemu_conf.1

# install -m 644 quickgui.1 $(DESTDIR)$(mandir)/man1

Expand All @@ -34,7 +36,7 @@ install: install_bins install_docs
uninstall::
rm -f $(DESTDIR)$(mandir)/man1/quickget.1
rm -f $(DESTDIR)$(mandir)/man1/quickemu.1
rm -f $(DESTDIR)$(mandir)/man1/quickemu_conf.1
rm -f $(DESTDIR)$(mandir)/man5/quickemu_conf.5
rm -f $(DESTDIR)$(bindir)/quickget
rm -f $(DESTDIR)$(bindir)/quickemu
rm -f $(DESTDIR)$(bindir)/quickreport
Expand Down
12 changes: 4 additions & 8 deletions docs/pandoc-man.mk
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
PANDOC ?= pandoc
PANDOC_OPTIONS = -f gfm+definition_lists

MANSECTION ?= 1
.SUFFIXES: .1.md .1 .5.md .5

PANDOC_OPTIONS=-f gfm+definition_lists --standalone


MANPAGE.md = $(PANDOC) --standalone $(PANDOC_OPTIONS) --to man

%.$(MANSECTION): %.$(MANSECTION).md
$(MANPAGE.md) $< -o $@
.1.md.1 .5.md.5:
$(PANDOC) --standalone $(PANDOC_OPTIONS) --to man -o $@ $<
2 changes: 1 addition & 1 deletion docs/quickemu.1
Original file line number Diff line number Diff line change
Expand Up @@ -1325,6 +1325,6 @@ Full sources at: \c
.UR https://github.com/quickemu-project/quickemu
.UE \c
.PP
quickemu_conf(1), quickget(1), quickgui(1)
quickemu_conf(5), quickget(1), quickgui(1)
.SH AUTHORS
Martin Wimpress.
2 changes: 1 addition & 1 deletion docs/quickemu.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -849,4 +849,4 @@ Submit bug reports online at:

Full sources at: <https://github.com/quickemu-project/quickemu>

quickemu_conf(1), quickget(1), quickgui(1)
quickemu_conf(5), quickget(1), quickgui(1)
2 changes: 1 addition & 1 deletion docs/quickemu_conf.1 → docs/quickemu_conf.5
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Automatically generated by Pandoc 3.3
.\"
.TH "QUICKEMU_CONF" "1" "August 2, 2024" "quickemu_conf" "Quickemu Configuration Manual"
.TH "QUICKEMU_CONF" "5" "August 2, 2024" "quickemu_conf" "Quickemu Configuration Manual"
.SH NAME
quickemu_conf \- Options and parameters in the quickemu <vm>.conf
.SH DESCRIPTION
Expand Down
2 changes: 1 addition & 1 deletion docs/quickemu_conf.1.md → docs/quickemu_conf.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ author: Martin Wimpress
date: August 2, 2024
footer: quickemu_conf
header: Quickemu Configuration Manual
section: 1
section: 5
title: QUICKEMU_CONF
---

Expand Down
2 changes: 1 addition & 1 deletion docs/quickget.1
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,6 @@ Full sources at: \c
.UR https://github.com/quickemu-project/quickemu
.UE \c
.PP
quickemu(1), quickemu_conf(1), quickgui(1)
quickemu(1), quickemu_conf(5), quickgui(1)
.SH AUTHORS
Martin Wimpress.
2 changes: 1 addition & 1 deletion docs/quickget.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -485,4 +485,4 @@ Submit bug reports online at:

Full sources at: <https://github.com/quickemu-project/quickemu>

quickemu(1), quickemu_conf(1), quickgui(1)
quickemu(1), quickemu_conf(5), quickgui(1)
10 changes: 5 additions & 5 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ stdenv.mkDerivation rec {
installPhase = ''
runHook preInstall
installManPage docs/quickget.1 docs/quickemu.1 docs/quickemu_conf.1
installManPage docs/quickget.1 docs/quickemu.1 docs/quickemu_conf.5
install -Dm755 -t "$out/bin" chunkcheck quickemu quickget quickreport
# spice-gtk needs to be put in suffix so that when virtualisation.spiceUSBRedirection
Expand Down
17 changes: 8 additions & 9 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function pretty_name() {

# Just in case quickget want use it
function os_homepage() {
os_info "${1}" | cut -d'|' -f 4
os_info "${1}" | cut -d'|' -f 3
}

function error_specify_os() {
Expand Down Expand Up @@ -759,7 +759,7 @@ function releases_guix() {
}

function releases_haiku() {
echo r1beta4 r1beta3
echo r1beta5 r1beta4 r1beta3
}

function editions_haiku() {
Expand Down Expand Up @@ -787,7 +787,7 @@ function releases_linuxlite() {
}

function releases_linuxmint() {
echo 21.3 21.2 21.1 21 20.3 20.2
echo 22 21.3 21.2 21.1 21 20.3 20.2
}

function editions_linuxmint() {
Expand Down Expand Up @@ -901,7 +901,7 @@ function editions_peppermint() {
}

function releases_popos() {
echo 22.04 21.10 20.04
echo 22.04 20.04
}

function editions_popos() {
Expand Down Expand Up @@ -3240,7 +3240,7 @@ function open_homepage() {
if [ -z "$(os_info "${1}")" ]; then
error_specify_os
else
URL="$(os_info "${1}" | cut -d'|' -f 4)"
URL="$(os_info "${1}" | cut -d'|' -f 3)"
# shellcheck disable=SC2034
XDG_OPEN=$(xdg-open "${URL}" || sensible-browser "${URL}" || x-www-browser "${URL}" || gnome-open "${URL}")
exit 0
Expand Down Expand Up @@ -3362,10 +3362,9 @@ function create_config() {

# Use command -v command to check if quickemu is in the system's PATH and
# fallback to checking if quickemu is in the current directory.
function resolve_quickemu() {
if command -v quickemu >/dev/null 2>&1; then
command -v quickemu
elif [ -f "./quickemu" ]; then
function resolve_quickemu() {
command -v quickemu || \
if [ -x "./quickemu" ]; then
echo "$(pwd)/quickemu"
else
echo "quickemu not found" >&2
Expand Down

0 comments on commit bce796b

Please sign in to comment.