PortValhalla/archiso/scripts/show-diff.fish

25 lines
822 B
Fish
Raw Normal View History

2024-07-07 22:44:35 +00:00
#!/bin/env fish
# Shows the differences between Arch's original `archiso` template named `releng` and this `archiso` directory.
begin
set -l contextRoot (mktemp -d)
set -l dir (status dirname)
set -l projectDir "$dir/.."
begin
2024-07-09 02:00:26 +00:00
source "$dir/template-path.fish"
2024-07-07 22:44:35 +00:00
rm -rf "$contextRoot"
2024-07-07 23:03:21 +00:00
and cp -r "$(templatePath)" "$contextRoot"
and chmod -R 755 "$contextRoot"
and git init "$contextRoot"
and git -C "$contextRoot" add .
2024-07-07 22:44:35 +00:00
2024-07-07 23:03:21 +00:00
and begin
2024-07-07 22:44:35 +00:00
git -C "$projectDir" ls-files
git -C "$projectDir" ls-files --exclude-standard --others
end | \
2024-07-15 18:19:06 +00:00
rsync --files-from=/dev/stdin --exclude={.gitignore,README.md,scripts,LICENSE,valhalla.patch} "$dir/.." "$contextRoot"
2024-07-15 18:19:52 +00:00
end &> /dev/null;
2024-07-07 22:44:35 +00:00
2024-07-07 23:03:21 +00:00
and git -C "$contextRoot" diff
2024-07-07 22:44:35 +00:00
end