mirror of
https://github.com/theupriser/steamify-cachyos-live-iso.git
synced 2026-10-02 15:10:26 +02:00
* Cleanup, remove unused profiles and rename kde to desktop The Gnome, Wayfire and Openbox DE's are not used anymore on our ISO, so lets clean it up. Also, lets change away from "kde" Edition to "Desktop" Edition to make it more clear to users. Signed-off-by: Peter Jung <admin@ptr1337.dev> * Packages: Move to correct naming Signed-off-by: Peter Jung <admin@ptr1337.dev> --------- Signed-off-by: Peter Jung <admin@ptr1337.dev>
69 lines
1.8 KiB
Bash
Executable File
69 lines
1.8 KiB
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# This program 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; version 2 of the License.
|
|
#
|
|
# This program 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.
|
|
|
|
src_dir=$(pwd)
|
|
[[ -r ${src_dir}/util-msg.sh ]] && source ${src_dir}/util-msg.sh
|
|
import ${src_dir}/util.sh
|
|
|
|
# setting of the general parameters
|
|
work_dir="${src_dir}/build"
|
|
outFolder="${src_dir}/out"
|
|
|
|
build_list_iso="desktop"
|
|
clean_first=true
|
|
verbose=false
|
|
|
|
usage() {
|
|
echo "Usage: ${0##*/} [options]"
|
|
echo ' -c Disable clean work dir'
|
|
echo " -p <profile> Buildset or profile [default: ${build_list_iso}]"
|
|
echo ' -v Verbose output to log file, show profile detail (-q)'
|
|
echo ' -h This help'
|
|
echo ''
|
|
echo ''
|
|
exit $1
|
|
}
|
|
|
|
orig_argv=("$@")
|
|
|
|
opts='p:cvh'
|
|
|
|
while getopts "${opts}" arg; do
|
|
case "${arg}" in
|
|
c) clean_first=false ;;
|
|
p) build_list_iso="$OPTARG" ;;
|
|
v) verbose=true ;;
|
|
h|?) usage 0 ;;
|
|
*) echo "invalid argument '${arg}'"; usage 1 ;;
|
|
esac
|
|
done
|
|
|
|
shift $(($OPTIND - 1))
|
|
|
|
timer_start=$(get_timer)
|
|
|
|
#check_root "$0" "${orig_argv[@]}"
|
|
|
|
prepare_dir "${work_dir}"
|
|
|
|
import ${src_dir}/util-iso.sh
|
|
import ${src_dir}/util-iso-mount.sh
|
|
|
|
check_requirements
|
|
|
|
for sig in TERM HUP QUIT; do
|
|
trap "trap_exit $sig \"$(gettext "%s signal caught. Exiting...")\" \"$sig\"" "$sig"
|
|
done
|
|
trap 'trap_exit INT "$(gettext "Aborted by user! Exiting...")"' INT
|
|
trap 'trap_exit USR1 "$(gettext "An unknown error has occurred. Exiting...")"' ERR
|
|
|
|
run_build "${build_list_iso}"
|