From 03f89c7059fa1af1353834efca401515e6a94521 Mon Sep 17 00:00:00 2001 From: emilyd Date: Fri, 2 Dec 2022 19:39:41 +0200 Subject: [PATCH] unfinished, unusable suudsu code --- utils/suudsu.sh | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 utils/suudsu.sh diff --git a/utils/suudsu.sh b/utils/suudsu.sh new file mode 100755 index 0000000..b11cac6 --- /dev/null +++ b/utils/suudsu.sh @@ -0,0 +1,47 @@ +#!/bin/bash +# suudsu - wxyz package manager +# named after the drink that consists of skimmed milk and gummy bears +# +# Copyright 2022 (C) The wxyz Team +# +# This file is part of wxyz GNU/Linux. +# +# wxyz GNU/Linux is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) +# any later version. +# +# wxyz GNU/Linux is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +# more details. +# +# You should have received a copy of the GNU General Public License along with +# wxyz GNU/Linux. If not, see . + +# shellcheck disable=SC2059 + +# unset for testing +#recipe_source="/etc/suudsu/recipes" + +success_message="\e[34m[ \e[32mOK\e[34m ]\e[0m" +error_message="\e[34m[ \e[31m!!\e[34m ]\e[0m" + +if [ "$recipe_source" = "" ]; then + printf "%s: " "$0" + printf "recipe_source not set" + printf " %b\n" "$error_message" + exit 1 +fi + +if [ "$1" = "" ]; then + printf "%s: " "$0" + printf "no argument" + printf " %b\n" "$error_message" + exit 1 +fi + +# testing +source "$recipe_source/busybox-1.33.2.wxyz" + +# TODO: actually turn this into a working package manager