separated recustomize function out as separate script. added bin.ant and bin.eclipse...
authorChris Koeritz <fred@gruntose.com>
Sat, 17 Sep 2016 21:53:07 +0000 (17:53 -0400)
committerChris Koeritz <fred@gruntose.com>
Sat, 17 Sep 2016 21:53:07 +0000 (17:53 -0400)
scripts/core/functions.sh
scripts/core/recustomize.sh [new file with mode: 0644]
scripts/files/filename_helper.pl
scripts/rev_control/checkin.sh
scripts/rev_control/version_control.sh

index 7edaa007b40b16e12b9075f5415a4a3a70bcc383..b883b47024d61e1a956caa7047c2b055790b298f 100644 (file)
@@ -393,45 +393,8 @@ if [ -z "$skip_all" ]; then
     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
diff --git a/scripts/core/recustomize.sh b/scripts/core/recustomize.sh
new file mode 100644 (file)
index 0000000..896e9f0
--- /dev/null
@@ -0,0 +1,46 @@
+#!/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
+#}
+
+
index a6632cf512869722e77d81659434f27554a0f4d2..4117df89b06a55630f29e92174028601331cb22a 100644 (file)
@@ -331,7 +331,7 @@ sub important_filename {
   # 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",
index ed58906f270bf1d92c52f5e22c6b93145dbfb731..965e67ad0b137a00728ae23ed98ce8610d492299 100644 (file)
@@ -1,6 +1,6 @@
 #!/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"
index 391497df5fe4bd316f71eea85221c41d752a65b5..432d32636c4bfb3de14efddd4f4184a5ec6fe87c 100644 (file)
@@ -112,7 +112,7 @@ function do_checkin()
     return 1
   fi
   pushd "$directory" &>/dev/null
-  retval=0  # normally successful.
+  local retval=0  # normally successful.
   if [ -d "CVS" ]; then
     cvs ci .
     retval=$?
@@ -141,7 +141,7 @@ function do_diff
 {
   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
@@ -160,7 +160,7 @@ function do_report_new
 {
   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
@@ -215,8 +215,7 @@ function squash_first_few_crs()
 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