PortValhalla/archiso/scripts/show-diff.fish

24 lines
806 B
Fish
Raw Permalink 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"
2024-09-25 17:49:59 +00:00
and chmod -R a+w "$contextRoot"
2024-07-07 23:03:21 +00:00
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
2024-11-29 00:13:58 +00:00
end | rsync --files-from=/dev/stdin --exclude={.gitignore,README.md,scripts,LICENSE,valhalla.patch} "$dir/.." "$contextRoot"
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