mirror of
https://github.com/rxrbln/t2sde.git
synced 2025-05-08 20:21:59 +08:00
46 lines
1.0 KiB
Bash
Executable File
46 lines
1.0 KiB
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 "$@" ;;
|
|
create) exec scripts/Create-Pkg "$@" ;;
|
|
commit) exec scripts/Commit "$@" ;;
|
|
find) exec scripts/Find-Pkg "$@" ;;
|
|
update) exec scripts/Update-Pkg "$@" ;;
|
|
|
|
install) exec scripts/Emerge-Pkg "$@" ;;
|
|
uninstall) exec mine -r "$@" ;;
|
|
|
|
up|pull) exec svn up ;;
|
|
|
|
*) usage ;;
|
|
esac
|