Add a script for determining the location of the releng template

This commit is contained in:
Manuel Thalmann 2024-06-18 21:58:26 +02:00
parent 2487f965cb
commit d879e32a64
2 changed files with 14 additions and 1 deletions

View file

@ -1,2 +1,10 @@
#!/bin/bash
diff -ru --no-dereference -x{.git,.gitignore,README.md,scripts,LICENSE,out,valhalla.patch} "$(dirname "$(which mkarchiso)")/../share/archiso/configs/releng" .
# Shows the differences between Arch's original `archiso` template named `releng` and this `archiso` directory.
pushd "${BASH_SOURCE%/*}" > /dev/null;
. ./template-path.sh;
diff -ru --no-dereference -x{.git,.gitignore,README.md,scripts,LICENSE,out,valhalla.patch} .. "$(templatePath)" \
| tee "valhalla.patch";
popd > /dev/null;

View file

@ -0,0 +1,5 @@
#!/bin/bash
# Prints the path to Arch's `releng` template.
function templatePath() {
echo "$(dirname "$(which mkarchiso)")/../share/archiso/configs/releng"
}