## # establish a pipe for less to see our beloved syntax highlighting.
## define_yeti_variable LESSOPEN="| source-highlight -f esc -o STDOUT -i %s"
- # ensure we use the right kind of secure shell.
-# define_yeti_variable CVS_RSH=$FEISTY_MEOW_SCRIPTS/security/ssh.sh
-# define_yeti_variable GIT_SSH=$FEISTY_MEOW_SCRIPTS/security/ssh.sh
-
# 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:
# define_yeti_variable REPOSITORY_DIR+="muppets configs"
# see the customize/fred folder for a live example.
- define_yeti_variable REPOSITORY_LIST=
+ define_yeti_variable REPOSITORY_LIST="$FEISTY_MEOW_APEX "
# the archive collections list is a set of directories that are major
# repositories of data which can be synched to backup drives.
save_terminal_title
- for i in $list; do
- # turn repo list back into an array.
- eval "repository_list=( ${REPOSITORY_LIST[*]} )"
- for j in "${repository_list[@]}"; do
- # add in the directory component.
- j="$i/$j"
- if [ ! -d "$j" ]; then continue; fi
- echo "checking in '$j'..."
- do_checkin $j
+ # turn repo list back into an array.
+ eval "repository_list=( ${REPOSITORY_LIST[*]} )"
+
+ local outer inner
+
+ for outer in "${repository_list[@]}"; do
+ # check the repository first, since it might be an absolute path.
+ if [[ $outer =~ /.* ]]; then
+ # yep, this path is absolute. just handle it directly.
+ if [ ! -d "$outer" ]; then continue; fi
+ echo "checking in '$outer'..."
+ do_checkin $outer
sep 7
- done
+ else
+ for inner in $list; do
+ # add in the directory component to see if we can find the folder.
+ local path="$inner/$outer"
+ if [ ! -d "$path" ]; then continue; fi
+ echo "checking in '$path'..."
+ do_checkin $path
+ sep 7
+ done
+ fi
done
restore_terminal_title
save_terminal_title
- for i in $list; do
- # turn repo list back into an array.
- eval "repository_list=( ${REPOSITORY_LIST[*]} )"
- for j in "${repository_list[@]}"; do
- # add in the directory for our purposes here.
- j="$i/$j"
- if [ ! -d $j ]; then
- if [ ! -z "$SHELL_DEBUG" ]; then
- echo "no directory called $j exists."
- fi
- continue
- fi
-
- echo -n "retrieving '$j'... "
- do_update $j
- done
+ # turn repo list back into an array.
+ eval "repository_list=( ${REPOSITORY_LIST[*]} )"
+
+ local outer inner
+
+ for outer in "${repository_list[@]}"; do
+ # check the repository first, since it might be an absolute path.
+ if [[ $outer =~ /.* ]]; then
+ # yep, this path is absolute. just handle it directly.
+ if [ ! -d "$outer" ]; then continue; fi
+ echo "retrieving '$outer'..."
+ do_update $outer
+ sep 7
+ else
+ for inner in $list; do
+ # add in the directory component to see if we can find the folder.
+ local path="$inner/$outer"
+ if [ ! -d "$path" ]; then continue; fi
+ echo "retrieving '$path'..."
+ do_update $path
+ sep 7
+ done
+ fi
done
restore_terminal_title