]> feistymeow.org Git - feisty_meow.git/commitdiff
made the repository list handling more selective
authorFred Hamster <fred@gruntose.com>
Sat, 14 Feb 2026 02:22:20 +0000 (21:22 -0500)
committerFred Hamster <fred@gruntose.com>
Sat, 14 Feb 2026 02:22:20 +0000 (21:22 -0500)
we only need things once, on either the pull or commit variables, not double listed, like ever.  doesn't hurt, just wastes time.
also cleaned up some older code.

documentation/feisty_meow_command_reference.txt
scripts/core/variables.sh
scripts/customize/fred/fred_variables.sh
scripts/customize/www-data/web_variables.sh
scripts/rev_control/checkin.sh
scripts/rev_control/getem.sh
scripts/rev_control/puffer.sh
scripts/rev_control/version_control.sh

index 690d1b5628a749fda5a9847f0461f0d1648b2704..457f31c84a47778a66ccb40dee8e9f50fbea0fa8 100644 (file)
@@ -112,6 +112,9 @@ as the set of revision-controlled folders to operate on:
 
 the feisty meow scripts automatically add the feisty meow top-level (the
 apex) to the pull list to ensure that updates are received when available.
+(this may not be the right decision for when feisty meow is installed
+system-wide, but the scripts will not attempt to check out the code if the
+.git folder is not writable.)
 ========
 
   getem:
@@ -124,7 +127,8 @@ apex) to the pull list to ensure that updates are received when available.
   checkin:
   first updates all of the items in the REPOSITORY_LIST_TO_PULL list (similar
   to puffer), but then checks in all changes in the REPOSITORY_LIST_TO_COMMIT
-  to their remote repositories.
+  to their remote repositories.  note that items on the commit list will be
+  puffed out first to receive updates before they are checked in.
 
 ========
 some assorted other revision control commands:
index 3f8b72e2b038c1dbbb2385e75f69f57100a41d73..2ea1ea4d9f1a9931d285b66446ec995b3411a3dc 100644 (file)
@@ -258,10 +258,11 @@ define_yeti_variable DEFAULT_FEISTYMEOW_ORG_DIR=/opt/feistymeow.org
 ##  define_yeti_variable LESSOPEN="| source-highlight -f esc -o STDOUT -i %s"
 
   # the base checkout list is just to update feisty_meow.  additional folder
-  # names can be added in your customized scripts.  the space at the end of
-  # this variable is important and allows users to extend the list like:
+  # names can be added in your customized scripts.
+  # NOTE: keeping a space at the end of these variables is important.
+  # the space character enables users to extend the list like so:
   #    REPOSITORY_DIR+="muppets configs "
-  # see the customize/fred folder for a live example.
+  # see the customize/fred folder for a live example of this.
   define_yeti_variable REPOSITORY_LIST_TO_PULL="$FEISTY_MEOW_APEX "
   define_yeti_variable REPOSITORY_LIST_TO_COMMIT=""
 
@@ -269,7 +270,7 @@ define_yeti_variable DEFAULT_FEISTYMEOW_ORG_DIR=/opt/feistymeow.org
 #hmmm: resolve if still using this 'active' folder.
   if [ -d "$FEISTY_MEOW_PERSONAL_HOME/active" ]; then
     active_addin+="$(find "$FEISTY_MEOW_PERSONAL_HOME/active" -maxdepth 1 -mindepth 1 -type d) "
-    REPOSITORY_LIST_TO_PULL+="$active_addin "
+#no, redundant.    REPOSITORY_LIST_TO_PULL+="$active_addin "
     REPOSITORY_LIST_TO_COMMIT+="$active_addin "
     unset active_addin
   fi
index 490f9583f4e51e009c4c95179a9ac7e4bd38cf94..9b5d0daab64ffc04c0ce654864066e60b7ec6c18 100644 (file)
@@ -18,15 +18,12 @@ if [ -z "$USER_CUSTOMIZATIONS_LOADED" ]; then
   # The gruntose web site and others are expected to reside below, if any sites exist at all.
   define_yeti_variable WEBBED_SITES="$FEISTY_MEOW_PERSONAL_HOME/web"
 
-  # add a bunch of personal folders to the list for checkin & checkout.
-  fred_addins="$CLOUD_BASE \
-    $WEBBED_SITES "
-  REPOSITORY_LIST_TO_PULL+="$fred_addins "
+  # add a bunch of personal folders to the list for checkin.
   # for fred, we add in a commit of feisty_meow code.  this is not something
   # everyone can do, thus not everyone should use fred's config.
-  REPOSITORY_LIST_TO_COMMIT+="$fred_addins \
+  REPOSITORY_LIST_TO_COMMIT+="$CLOUD_BASE \
+    $WEBBED_SITES \
     ${FEISTY_MEOW_APEX} "
-  unset fred_addins
 
   # adds our locally relevant archive folders into the list to be synched.
   MAJOR_ARCHIVE_SOURCES+="/z/archons /z/basement /z/imaginations /z/musix /z/toaster /z/walrus $HOME/brobdingnag"
index b865d9c5c4bc0cc0a4462afce2c5162ba66d600f..b4a5cd9e7c6e75d14cb1ee3594d218159c0abdcd 100644 (file)
@@ -7,10 +7,9 @@ if [ -z "$USER_CUSTOMIZATIONS_LOADED" ]; then
 
   ##############
  
-  # The gruntose web site is expected to reside below, if it exists at all.
+  # the gruntose web site is expected to reside below, if it exists at all.
   export WEBBED_SITES="$FEISTY_MEOW_PERSONAL_HOME/web"
-
-  REPOSITORY_LIST_TO_PULL+="$WEBBED_SITES"
+  # and we do want it checked in when there are updates.
   REPOSITORY_LIST_TO_COMMIT+="$WEBBED_SITES"
 
   ##############
index 70996de90ae97d67b27b42a111a718239e6766da..49f18d602b8d8d6a1e1c58a6de2443f34665422d 100644 (file)
@@ -13,10 +13,6 @@ save_terminal_title
 echo "committing repositories at: $(date)"
 
 FULL_LIST_OUT="${REPOSITORY_LIST_TO_PULL}"
-#still wrong: FULL_LIST_OUT=" $(dirname $FEISTY_MEOW_APEX) $HOME "
-#ack: if [ "$OS" == "Windows_NT" ]; then
-#  FULL_LIST+=" c:/ d:/ e:/ "
-#fi
 puff_out_list $FULL_LIST_OUT
 exit_on_error "revision control puffing-out of list: $FULL_LIST_OUT"
 
index 3249cfc2a913f4b8d7f02115a5ec6dbe0dc4e7d3..0cbfc4070c0497918a3a590dec2ef14f154d839c 100644 (file)
@@ -42,11 +42,7 @@ exit_on_error "removing file: $TMPO_CHK"
 echo "getting repositories at: $(date)"
 
 # perform the checkouts as appropriate per OS.
-#wrong: FULL_LIST="$(dirname $FEISTY_MEOW_APEX) $HOME"
 FULL_LIST="${REPOSITORY_LIST_TO_PULL}"
-#argh: if [ "$OS" == "Windows_NT" ]; then
-#  FULL_LIST+="c:/ d:/ e:/"
-#fi
 checkout_list $FULL_LIST 2>&1 | tee -a "$TMPO_CHK"
 exit_on_error "checking out list: $FULL_LIST"
 
index 83fcf4c29b5ca3de1b7bb9b2715eee823b980b96..7f90940395d71bc273208ad9948a011f3eb12a9f 100644 (file)
@@ -18,12 +18,7 @@ save_terminal_title
 
 echo "puffing out repositories at: $(date)"
 
-#wrong: FULL_LIST=" $(dirname $FEISTY_MEOW_APEX) $HOME "
 FULL_LIST="${REPOSITORY_LIST_TO_PULL}"
-#no, and yuck: if [ "$OS" == "Windows_NT" ]; then
-#  FULL_LIST+=" c:/ d:/ e:/ "
-#fi
-
 puff_out_list $FULL_LIST
 exit_on_error "puffing out list: $FULL_LIST"
 
index b3792753fd079ac16f1482b38cf0c564d7f254fe..e5cf37b0a913a6e591c02ce7df4d61602dbb3243 100644 (file)
@@ -234,9 +234,7 @@ function checkin_list()
   local list="$(uniquify $*)"
 
   # turn repo list back into an array.
-#no, wtf???  repolist_combined="$(uniquify ${REPOSITORY_LIST_TO_COMMIT[*]} ${REPOSITORY_LIST_TO_PULL[*]})"
-#  eval "repository_list=( $repolist_combined )"
-  eval "repository_list=( ${REPOSITORY_LIST_TO_COMMIT[*]} )"
+  eval "repository_list=( ${REPOSITORY_LIST_TO_COMMIT[@]} )"
 
   local outer inner
 
@@ -492,7 +490,7 @@ function checkout_list()
   local list="$(uniquify $*)"
 
   # turn repo list back into an array.
-  eval "repository_list=( ${REPOSITORY_LIST_TO_PULL[*]} )"
+  eval "repository_list=( ${REPOSITORY_LIST_TO_PULL[@]} )"
 
   local outer inner
 
@@ -525,7 +523,7 @@ function puff_out_list()
   local list="$(uniquify $*)"
 
   # turn repo list back into an array.
-  eval "repository_list=( ${REPOSITORY_LIST_TO_PULL[*]} )"
+  eval "repository_list=( ${REPOSITORY_LIST_TO_PULL[@]} )"
 
   local outer inner