[open-ils-commits] r7885 - trunk

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Oct 15 12:02:41 EDT 2007


Author: erickson
Date: 2007-10-15 11:50:12 -0400 (Mon, 15 Oct 2007)
New Revision: 7885

Modified:
   trunk/config.sh
Log:
added logic to update the offline-config.pl script when "make config" is run so it will not have to be manually created

Modified: trunk/config.sh
===================================================================
--- trunk/config.sh	2007-10-13 18:27:06 UTC (rev 7884)
+++ trunk/config.sh	2007-10-15 15:50:12 UTC (rev 7885)
@@ -205,6 +205,32 @@
 	_write '$main::config{index} = "config.cgi";';
 
 
+    # --------------------------------------------------------------------
+	# Now we'll write out the offline config
+	CONFIG_FILE='Open-ILS/src/offline/offline-config.pl';
+	rm -f "$CONFIG_FILE";
+	echo "Writing bootstrapping config to $CONFIG_FILE...";
+
+    _write "\$main::config{base_dir} = '$PREFIX/var/data/offline/';";
+    _write "\$main::config{bootstrap} = '$ETCDIR/opensrf_core.xml';";
+
+	STR='$main::config{dsn} =';
+		STR="$STR 'dbi:${DBDRVR}:host=";
+		STR="${STR}${DBHOST};dbname=";
+		STR="${STR}${DBNAME};port=";
+		STR="${STR}${DBPORT}';";
+	_write "$STR"
+
+	STR='$main::config{usr} =';
+		STR="$STR '$DBUSER';";
+	_write "$STR"
+	
+	STR='$main::config{pw} =';
+		STR="$STR '$DBPW';";
+	_write "$STR"
+    # --------------------------------------------------------------------
+	
+
 	prompt "";
 	prompt "";
 	prompt "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!";



More information about the open-ils-commits mailing list