moved spooling saves into ~/data
[feisty_meow.git] / scripts / customize / fred / scripts / gamesaver.sh
index 1e5ea9ca8ab6195be56feacc7cab5db35d94fdf4..43aa8d411a2b6bdc8ab94adad9654422f2f30c71 100644 (file)
@@ -5,17 +5,24 @@
 
 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
 
+#we are missing the netcp thing.  why????
+
 WINE_SOURCE_DIR="$HOME/wine_goods/My Games"
-SPOOLING_OUTPUT_DIR="$HOME/spooling_saves"
+SPOOLING_OUTPUT_DIR="$HOME/data/spooling_saves"
 
 if [ ! -d "$WINE_SOURCE_DIR" ]; then
-  WINE_SOURCE_DIR="c:/users/fred/My Documents/My Games"
+  WINE_SOURCE_DIR="/cygdrive/c/users/fred/My Documents/My Games"
 fi
 if [ ! -d "$WINE_SOURCE_DIR" ]; then
   echo "Failing to find the game save directories."
   exit 1
 fi
 
+if [ ! -d "$SPOOLING_OUTPUT_DIR" ]; then
+  mkdir -p "$SPOOLING_OUTPUT_DIR"
+  check_result Creating spooling output directory.
+fi
+
 # copies the files for a particular game out to a spooling folder.
 function copyem()
 {
@@ -25,7 +32,8 @@ function copyem()
 
   if [ -d "$source_dir" ]; then
     echo $game_name
-    cp -v -n "$source_dir"/* "$out_dir"/
+#old    cp -v -n "$source_dir"/* "$out_dir"/
+    netcp "$source_dir"/* "$out_dir"/
     sep 28
   fi
 }