PortValhalla/archiso/scripts/show-diff.sh

23 lines
639 B
Bash
Raw Normal View History

#!/bin/bash
# Shows the differences between Arch's original `archiso` template named `releng` and this `archiso` directory.
pushd "${BASH_SOURCE%/*}" > /dev/null;
. ./template-path.sh;
2024-06-20 14:46:06 +00:00
{
contextRoot="$(mktemp -d)";
rm -rf "$contextRoot";
cp -r "$(templatePath)" "$contextRoot";
chmod -R 755 "$contextRoot";
git init "$contextRoot";
pushd "$contextRoot" > /dev/null;
git add .;
popd > /dev/null;
rsync -r --exclude={.git,.gitignore,README.md,scripts,LICENSE,out,valhalla.patch,work} .. "$contextRoot"
2024-06-20 14:46:06 +00:00
} 2>&1 > /dev/null;
pushd "$contextRoot" > /dev/null;
git diff;
popd > /dev/null;
popd > /dev/null;