|
@@ -7,7 +7,7 @@ set -x #echo on
|
|
|
# ---------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
if [[ -z "$1" ]]; then
|
|
|
- printf "${0} usage: clobber | run\n"
|
|
|
+ printf "${0} usage: bootstrap | build | run\n"
|
|
|
exit 1
|
|
|
fi
|
|
|
|
|
@@ -15,18 +15,7 @@ fi
|
|
|
|
|
|
# == | Functions | ====================================================================================================
|
|
|
|
|
|
-shmach_cmd_xclobber() {
|
|
|
- if [[ -d "./.obj" ]]; then
|
|
|
- rm -rfv "./.obj"
|
|
|
- else
|
|
|
- printf "${0} error: There is no object directory\n"
|
|
|
- exit 1
|
|
|
- fi
|
|
|
-}
|
|
|
-
|
|
|
-# ---------------------------------------------------------------------------------------------------------------------
|
|
|
-
|
|
|
-shmach_cmd_configure() {
|
|
|
+shmach_cmd_bootstrap() {
|
|
|
mkdir -pv "./.obj/cache"
|
|
|
cd "./.obj/cache"
|
|
|
|
|
@@ -58,15 +47,28 @@ shmach_cmd_configure() {
|
|
|
|
|
|
# --------------------------------- #
|
|
|
|
|
|
- if [[ ! -d "./mozilla" ]]; then
|
|
|
- hg clone ./cache/$SEAMONKEY_MOZILLA_RELEASE seamonkey
|
|
|
- hg clone ./cache/$SEAMONKEY_COMM_RELEASE seamonkey/comm
|
|
|
+ if [[ ! -d "./source" ]]; then
|
|
|
+ hg clone ./cache/$SEAMONKEY_MOZILLA_RELEASE source
|
|
|
+ hg clone ./cache/$SEAMONKEY_COMM_RELEASE source/comm
|
|
|
+ fi
|
|
|
+
|
|
|
+ # --------------------------------- #
|
|
|
+
|
|
|
+ if [[ ! -d "./patches" ]]; then
|
|
|
+ unzip ./cache/${SEAMONKEY_WIP_FILENAME}${SEAMONKEY_WIP_FILETYPE}
|
|
|
+ mv -v ${SEAMONKEY_WIP_FILENAME} patches
|
|
|
+ cp -rv ./patches/frg/work-js/mozilla-release/patches ./source/.hg/
|
|
|
+ cp -rv ./patches/frg/work-js/comm-release/patches ./source/comm/.hg/
|
|
|
+ cd "./source/comm"
|
|
|
+ hg qpush --all --encodingmode replace
|
|
|
+ cd ..
|
|
|
+ hg qpush --all --encodingmode replace
|
|
|
+ cd ..
|
|
|
fi
|
|
|
-
|
|
|
|
|
|
# --------------------------------- #
|
|
|
|
|
|
- printf "${0} information: Configure complete.\n"
|
|
|
+ printf "${0} information: Bootstrap complete.\n"
|
|
|
|
|
|
}
|
|
|
|