perf: 构建工具调整
This commit is contained in:
@@ -36,9 +36,11 @@ standardEnv() {
|
||||
fi
|
||||
}
|
||||
|
||||
# customize
|
||||
# Different processing depending on the value of customize
|
||||
customize() {
|
||||
echo "customize"
|
||||
cp -rf $OMCEtcDir/vendor/$C_PARAM/web/* $OMCEtcDir/web/background
|
||||
cp -rf $OMCEtcDir/vendor/$C_PARAM/static/* /usr/local/$C_PARAM/static
|
||||
$OMCBinFile -c $confFile --sqlPath $OMCEtcDir/vendor/$C_PARAM/database/$DBSource/customized.sql --sqlSource $MODE
|
||||
}
|
||||
|
||||
# =========================
|
||||
@@ -86,7 +88,7 @@ echo "Type parameter: $T_PARAM"
|
||||
# Determine if -m is passed in
|
||||
if [ -n "$M_PARAM" ]; then
|
||||
# Check that mode is within the standard range
|
||||
if [[ "$mode" != "standard" && "$mode" != "lite" ]]; then
|
||||
if [[ "$M_PARAM" != "standard" && "$M_PARAM" != "lite" ]]; then
|
||||
echo "Error: -m can only be 'standard' or 'lite'."
|
||||
exit 1
|
||||
fi
|
||||
@@ -100,7 +102,7 @@ echo "Mode parameter: $MODE"
|
||||
# Determine if -c is passed in
|
||||
if [ -n "$C_PARAM" ]; then
|
||||
# Check if customize is within the standard
|
||||
if [[ "$customize" != "omc" && "$customize" != "agt" && "$customize" != "ba" ]]; then
|
||||
if [[ "$C_PARAM" != "omc" && "$C_PARAM" != "agt" && "$C_PARAM" != "ba" ]]; then
|
||||
echo "Error: -c can only be 'omc', 'agt' or 'ba'."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user