echo $(which $to_find)
}
- # copies a set of custom scripts into the proper location for feisty meow
- # to merge their functions and aliases with the standard set.
- function recustomize()
- {
- user="$1"; shift
- if [ -z "$user" ]; then
- # use our default example user if there was no name provided.
- user=fred
- fi
- if [ ! -d "$FEISTY_MEOW_APEX/customizing/$user" ]; then
- echo "The customization folder provided for $user should be:"
- echo " '$FEISTY_MEOW_APEX/customizing/$user'"
- echo "but that folder does not exist. Skipping customization."
- return 1
- fi
- regenerate >/dev/null
- pushd "$FEISTY_MEOW_LOADING_DOCK/custom" &>/dev/null
- local incongruous_files="$(bash "$FEISTY_MEOW_SCRIPTS/files/list_non_dupes.sh" "$FEISTY_MEOW_APEX/customizing/$user" "$FEISTY_MEOW_LOADING_DOCK/custom")"
-
-#echo "the incongruous files list is: $incongruous_files"
- # disallow a single character result, since we get "*" as result when nothing exists yet.
- if [ ${#incongruous_files} -ge 2 ]; then
- echo "cleaning unknown older overrides..."
- perl "$FEISTY_MEOW_SCRIPTS/files/safedel.pl" $incongruous_files
- echo
- fi
- popd &>/dev/null
- echo "copying custom overrides for $user"
- mkdir -p "$FEISTY_MEOW_LOADING_DOCK/custom" 2>/dev/null
- perl "$FEISTY_MEOW_SCRIPTS/text/cpdiff.pl" "$FEISTY_MEOW_APEX/customizing/$user" "$FEISTY_MEOW_LOADING_DOCK/custom"
- if [ -d "$FEISTY_MEOW_APEX/customizing/$user/scripts" ]; then
- echo "copying custom scripts for $user"
- \cp -R "$FEISTY_MEOW_APEX/customizing/$user/scripts" "$FEISTY_MEOW_LOADING_DOCK/custom/"
- fi
- echo
- regenerate
- }
-
-#uhhh, this does what now?
+#hmmm: improve this by not adding the link
+# if already there, or if the drive is not valid.
function add_cygwin_drive_mounts() {
for i in c d e f g h q z ; do
ln -s /cygdrive/$i $i
--- /dev/null
+#!/bin/bash
+
+# copies a set of custom scripts into the proper location for feisty meow
+# to merge their functions and aliases with the standard set.
+
+
+source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
+
+# function recustomize()
+#{
+
+user="$1"; shift
+if [ -z "$user" ]; then
+ # use our default example user if there was no name provided.
+ user=fred
+fi
+if [ ! -d "$FEISTY_MEOW_APEX/customizing/$user" ]; then
+ echo "The customization folder provided for $user should be:"
+ echo " '$FEISTY_MEOW_APEX/customizing/$user'"
+ echo "but that folder does not exist. Skipping customization."
+ return 1
+fi
+regenerate >/dev/null
+pushd "$FEISTY_MEOW_LOADING_DOCK/custom" &>/dev/null
+incongruous_files="$(bash "$FEISTY_MEOW_SCRIPTS/files/list_non_dupes.sh" "$FEISTY_MEOW_APEX/customizing/$user" "$FEISTY_MEOW_LOADING_DOCK/custom")"
+
+#echo "the incongruous files list is: $incongruous_files"
+# disallow a single character result, since we get "*" as result when nothing exists yet.
+if [ ${#incongruous_files} -ge 2 ]; then
+ echo "cleaning unknown older overrides..."
+ perl "$FEISTY_MEOW_SCRIPTS/files/safedel.pl" $incongruous_files
+ echo
+fi
+popd &>/dev/null
+echo "copying custom overrides for $user"
+mkdir -p "$FEISTY_MEOW_LOADING_DOCK/custom" 2>/dev/null
+perl "$FEISTY_MEOW_SCRIPTS/text/cpdiff.pl" "$FEISTY_MEOW_APEX/customizing/$user" "$FEISTY_MEOW_LOADING_DOCK/custom"
+if [ -d "$FEISTY_MEOW_APEX/customizing/$user/scripts" ]; then
+ echo "copying custom scripts for $user"
+ \cp -R "$FEISTY_MEOW_APEX/customizing/$user/scripts" "$FEISTY_MEOW_LOADING_DOCK/custom/"
+fi
+echo
+regenerate
+#}
+
+
# at the front, we will match only the whole string. double slashes are
# used before periods to ensure we match a real period character.
local(@junk_files) = ("~", "^\\.#.*", "^\\._.*", "\\.aps", "\\.bak",
- "^binaries",
+ "^binaries", "^bin.ant", "^bin.eclipse",
"\\.clw", "^cpdiff_tmp\\.txt", "^\\.ds_store", "^diffs\\.txt",
"^diff_tmp\\.txt", "\\.dsp", "\\.dsw", "\\.gid", "gmon\\.out", "\\.isr",
"^isconfig\\.ini", "\\.log", "^manifest.txt", "^obj",
#!/bin/bash
-# checks in all the folders present in the REPOSITORY_LIST variable.
+# checkin: checks in all the folders present in the REPOSITORY_LIST variable.
source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
source "$FEISTY_MEOW_SCRIPTS/rev_control/version_control.sh"
return 1
fi
pushd "$directory" &>/dev/null
- retval=0 # normally successful.
+ local retval=0 # normally successful.
if [ -d "CVS" ]; then
cvs ci .
retval=$?
{
local directory="$1"; shift
pushd "$directory" &>/dev/null
- retval=0 # normally successful.
+ local retval=0 # normally successful.
# only update if we see a repository living there.
if [ -d ".svn" ]; then
{
local directory="$1"; shift
pushd "$directory" &>/dev/null
- retval=0 # normally successful.
+ local retval=0 # normally successful.
# only update if we see a repository living there.
if [ -d ".svn" ]; then
function do_update()
{
directory="$1"; shift
- # plan on success for now.
- retval=0
+ local retval=0 # plan on success for now.
pushd "$directory" &>/dev/null
if [ -d "CVS" ]; then
cvs update . | squash_first_few_crs