Browse Source

Complete some more of shmach

nsITobin 2 months ago
parent
commit
770e3c15da
1 changed files with 20 additions and 18 deletions
  1. 20 18
      mach

+ 20 - 18
mach

@@ -7,7 +7,7 @@ set -x #echo on
 # ---------------------------------------------------------------------------------------------------------------------
 # ---------------------------------------------------------------------------------------------------------------------
 
 
 if [[ -z "$1" ]]; then
 if [[ -z "$1" ]]; then
-  printf "${0} usage: clobber | run\n"
+  printf "${0} usage: bootstrap | build | run\n"
   exit 1
   exit 1
 fi
 fi
 
 
@@ -15,18 +15,7 @@ fi
 
 
 # == | Functions | ====================================================================================================
 # == | 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"
   mkdir -pv "./.obj/cache"
   cd "./.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
   fi
-    
 
 
   # --------------------------------- #
   # --------------------------------- #
 
 
-  printf "${0} information: Configure complete.\n"
+  printf "${0} information: Bootstrap complete.\n"
   
   
 }
 }