PortValhalla/scripts/Common/Scripts/software.fish

29 lines
688 B
Fish

#!/bin/env fish
begin
set -a installed
function getSWName
end
function installSW
end
function configureSW
end
function runInstaller -a action
if [ -z "$action" ] || [ "$action" = "install" ]
set -a installed (getSWName)
installSW $argv[2..]
else if [ "$action" = "configure" ]
if [ -z (getSWName) ] || contains (getSWName) $installed
configureSW $argv[2..]
else
printf %s%s\n \
"$(tput setaf 3)Warning:$(tput sgr0) " \
"$(getSWName) does not seem to be installed -- Skipping"
end
end
end
end