PortValhalla/archiso/scripts/update.fish

15 lines
340 B
Fish
Raw Normal View History

2024-07-07 22:44:35 +00:00
#!/bin/env fish
begin
set -l dir (status dirname)
set -l projectDir "$dir/.."
set -l patch "$dir/valhalla.patch"
2024-07-09 02:00:26 +00:00
source "$dir/template-path.fish"
2024-07-07 22:44:35 +00:00
cp -r "$(templatePath)"/* "$projectDir"
2024-07-07 23:03:21 +00:00
and begin
if [ -f "$patch" ]
git -C "$projectDir" apply --directory=archiso "$patch"
end
2024-07-07 22:44:35 +00:00
end
end