t2sde/t2
2024-06-26 11:50:50 +00:00

43 lines
967 B
Bash
Executable File

#!/bin/bash
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# T2 SDE: t2
# Copyright (C) 2023 - 2024 The T2 SDE Project
#
# This Copyright note is generated by scripts/Create-CopyPatch,
# more information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2.
# --- T2-COPYRIGHT-NOTE-END ---
usage() {
cat << EOT
Usage: t2 command <options>
Commands:
config
install
uninstall
download
build
Options:
-v, --verbose Verbose
-c, --cfg Config name
EOT
exit 1
}
cmd="$1"; shift
case "$cmd" in
config) exec scripts/Config "$@" ;;
download) exec scripts/Download "$@" ;;
build) exec scripts/Build-Pkg "$@" ;;
commit) exec scripts/Commit "$@" ;;
create) exec scripts/Create-Pkg "$@" ;;
install) exec scripts/Emerge-Pkg "$@" ;;
uninstall) exec mine -r "$@" ;;
up|pull) exec svn up ;;
*) usage ;;
esac