PortValhalla/scripts/Common/Scripts/software.fish

29 lines
688 B
Fish
Raw Normal View History

#!/bin/env fish
begin
2024-07-19 23:21:25 +00:00
set -a installed
function getSWName
end
function installSW
end
function configureSW
end
function runInstaller -a action
if [ -z "$action" ] || [ "$action" = "install" ]
2024-07-19 23:21:25 +00:00
set -a installed (getSWName)
2024-07-15 11:56:27 +00:00
installSW $argv[2..]
2024-07-14 08:10:04 +00:00
else if [ "$action" = "configure" ]
2024-07-19 23:32:42 +00:00
if [ -z (getSWName) ] || contains (getSWName) $installed
2024-07-19 23:21:25 +00:00
configureSW $argv[2..]
else
printf %s%s\n \
2024-07-19 23:57:06 +00:00
"$(tput setaf 3)Warning:$(tput sgr0) " \
2024-07-19 23:21:25 +00:00
"$(getSWName) does not seem to be installed -- Skipping"
end
end
end
end