加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
tgen.bash 1.59 KB
一键复制 编辑 原始数据 按行查看 历史
SDRausty 提交于 2019-10-22 13:36 . modified: archlinuxconfig.bash
#!/bin/env bash
# Copyright 2019 (c) all rights reserved
# by S D Rausty https://termuxarch.github.io/TermuxArch/
#####################################################################
set -Eeuo pipefail
shopt -s nullglob globstar
_STGNTRPERROR_() { # run on script error
local RV="$?"
printf "\\n%s\\n" "$RV"
printf "\\e[?25h\\n\\e[1;48;5;138mBuildAPKs %s ERROR: Generated script error %s near or at line number %s by \`%s\`!\\e[0m\\n" "gsa.bash" "${3:-VALUE}" "${1:-LINENO}" "${2:-BASH_COMMAND}"
exit 179
}
_STGNTRPEXIT_() { # run on exit
printf "\\e[?25h\\e[0m"
set +Eeuo pipefail
exit
}
_STGNTRPSIGNAL_() { # run on signal
local RV="$?"
printf "\\e[?25h\\e[1;7;38;5;0mBuildAPKs %s WARNING: Signal %s received!\\e[0m\\n" "gsa.bash" "$RV"
exit 178
}
_STGNTRPQUIT_() { # run on quit
local RV="$?"
printf "\\e[?25h\\e[1;7;38;5;0mBuildAPKs %s WARNING: Quit signal %s received!\\e[0m\\n" "gsa.bash" "$RV"
exit 177
}
trap '_STGNTRPERROR_ $LINENO $BASH_COMMAND $?' ERR
trap _STGNTRPEXIT_ EXIT
trap _STGNTRPSIGNAL_ HUP INT TERM
trap _STGNTRPQUIT_ QUIT
cp LICENSE gen/
cp README.md gen/
cp archlinuxconfig.bash gen/
cp espritfunctions.bash gen/
cp getimagefunctions.bash gen/
cp knownconfigurations.bash gen/
cp maintenanceroutines.bash gen/
cp necessaryfunctions.bash gen/
cp printoutstatements.bash gen/
cp setupTermuxArch.bash gen/
cd gen/
sha512sum *.bash > termuxarchchecksum.sha512
sha512sum -c termuxarchchecksum.sha512
tar zcf ../setupTermuxArch.tar.gz *
cd ..
rm -f gen/*
sha512sum setupTermuxArch.tar.gz > setupTermuxArch.sha512
sha512sum -c setupTermuxArch.sha512
./do.sums.bash
# tgen.bash EOF
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化