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.
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:
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:
## 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=""
#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
# 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"
##############
- # 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"
##############
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"
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"
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"
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
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
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