[open-ils-commits] r182 - conifer/trunk/tools (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Mar 15 14:06:37 EDT 2009


Author: dbs
Date: 2009-03-15 14:06:34 -0400 (Sun, 15 Mar 2009)
New Revision: 182

Modified:
   conifer/trunk/tools/patch_conifer.sh
Log:
Full pathname issues - hmm


Modified: conifer/trunk/tools/patch_conifer.sh
===================================================================
--- conifer/trunk/tools/patch_conifer.sh	2009-03-15 17:57:34 UTC (rev 181)
+++ conifer/trunk/tools/patch_conifer.sh	2009-03-15 18:06:34 UTC (rev 182)
@@ -42,9 +42,9 @@
 {
 	# Copy the impossible-to-be-harmful (really!) Web stuff in place
 	# Images
-	cp "$LOCAL_EXPORT_DIR"/web/opac/images/* "$INSTALL_DIR"/var/web/opac/images/.
+	cp -r "$LOCAL_EXPORT_DIR"/web/opac/images/* "$INSTALL_DIR"/var/web/opac/images/.
 	# DTD files for replacement strings
-	cp "$LOCAL_EXPORT_DIR"/web/opac/locale/* "$INSTALL_DIR"/var/web/opac/locale/.
+	cp -r "$LOCAL_EXPORT_DIR"/web/opac/locale/* "$INSTALL_DIR"/var/web/opac/locale/.
 }
 
 copy_opac_skins()
@@ -70,10 +70,11 @@
 {
 	for circ_rule in `ls -1 "$LOCAL_EXPORT_DIR"/circ/*`
 	do
-		if cmp "$LOCAL_EXPORT_DIR"/circ/"$circ_rule" "$LOCAL_EG_DIR"/var/circ/"$circ_rule" &> /dev/null
+		base_circ=`basename "$circ_rule"`
+		if cmp "$circ_rule" "$LOCAL_EG_DIR"/var/circ/"$base_circ" &> /dev/null
 		then echo -n
 		else
-			cp --backup=numbered "$LOCAL_EXPORT_DIR"/circ/"$circ_rule" "$INSTALL_DIR"/var/circ/.
+			cp --backup=numbered "$circ_rule" "$INSTALL_DIR"/var/circ/.
 			osrf_ctl.sh -a restart_perl > /dev/null
 		fi
 	done
@@ -83,9 +84,9 @@
 # And similarly, we might want to only trigger these manually
 copy_perl_modules()
 {
-	for perl_mod in `cd "$LOCAL_EXPORT_DIR"/src/perlmods/; find . -name "*.pm" -print0`
+	for perl_mod in `cd "$LOCAL_EXPORT_DIR"/src/perlmods/; find OpenILS -name "*.pm" -print0`
 	do
-		if cmp "$perl_mod" "$LOCAL_EG_DIR"/lib/perl5/"$perl_mod" &> /dev/null
+		if cmp "$LOCAL_EXPORT_DIR"/src/perlmods/"$perl_mod" "$LOCAL_EG_DIR"/lib/perl5/"$perl_mod" &> /dev/null
 		then echo -n
 		else
 			cp --backup=numbered "$perl_mod" "$INSTALL_DIR"/lib/perl5/"$perl_mod"



More information about the open-ils-commits mailing list