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
|
|
|
|
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-10-06 19:25:34 +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
|