diff --git a/archiso/scripts/show-diff.sh b/archiso/scripts/show-diff.sh index 3fbd1969..8e4540a8 100755 --- a/archiso/scripts/show-diff.sh +++ b/archiso/scripts/show-diff.sh @@ -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; diff --git a/archiso/scripts/template-path.sh b/archiso/scripts/template-path.sh new file mode 100755 index 00000000..702ee2cf --- /dev/null +++ b/archiso/scripts/template-path.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# Prints the path to Arch's `releng` template. +function templatePath() { + echo "$(dirname "$(which mkarchiso)")/../share/archiso/configs/releng" +}