[med-svn] r11622 - trunk/packages/vista/trunk/debian
Luis Ibanez
luisibanez-guest at alioth.debian.org
Sat Jul 7 15:09:43 UTC 2012
Author: luisibanez-guest
Date: 2012-07-07 15:09:43 +0000 (Sat, 07 Jul 2012)
New Revision: 11622
Modified:
trunk/packages/vista/trunk/debian/auto_install
trunk/packages/vista/trunk/debian/changelog
Log:
ENH: Added process for importing routines and globals into VistA instance.
Modified: trunk/packages/vista/trunk/debian/auto_install
===================================================================
--- trunk/packages/vista/trunk/debian/auto_install 2012-07-07 14:43:42 UTC (rev 11621)
+++ trunk/packages/vista/trunk/debian/auto_install 2012-07-07 15:09:43 UTC (rev 11622)
@@ -1,6 +1,8 @@
#!/bin/sh
export GTM_INSTALL_DIR=/usr/lib/fis-gtm/V5.5-000_x86_64
export VISTAINSTANCEDIR=debian/var/lib/vista
+export CMAKE_VISTA_BINARY_DIR=./obj-x86_64-linux-gnu
+export CMAKE_VISTA_FOIA_DIR=./Vista-FOIA
mkdir -p $VISTAINSTANCEDIR
mkdir -p $VISTAINSTANCEDIR/r
mkdir -p $VISTAINSTANCEDIR/o
@@ -13,7 +15,34 @@
export gtmgbldir=$VISTAINSTANCEDIR/g/database
export gtmroutines="$VISTAINSTANCEDIR/o($VISTAINSTANCEDIR/r) $GTM_INSTALL_DIR/libgtmutil.so"
export gtm_tmp=/tmp
+
+#
+# Create the database
+#
+echo "I: Creating the database..."
echo "change -s DEFAULT -f=$VISTAINSTANCEDIR/g/database" | $GTM_INSTALL_DIR/mumps -r GDE
$GTM_INSTALL_DIR/mupip create
$GTM_INSTALL_DIR/dse change -f -key_max=1023 -rec=4096
+#
+# Prepare routines and globals for importing
+#
+echo "I: Preparing routines and globals for importing..."
+echo "I: We are in the directory: "
+pwd
+find $CMAKE_VISTA_FOIA_DIR -name "*.m" | sort | python Scripts/PackRO.py > $CMAKE_VISTA_FOIA_DIR/routines.ro
+find $CMAKE_VISTA_FOIA_DIR -name "*.zwr" | sort > $CMAKE_VISTA_FOIA_DIR/globals.lst
+
+#
+# Import routines and globlas into the database
+#
+echo "I: Importing Routines..."
+echo "I: We are in the directory: "
+pwd
+python "$CMAKE_VISTA_BINARY_DIR/RoutineImport.py"
+echo "I: Importing Globals..."
+echo "I: We are in the directory: "
+pwd
+python "$CMAKE_VISTA_BINARY_DIR/GlobalImport.py"
+echo "I: Importing completed for VistA instance"
+
Modified: trunk/packages/vista/trunk/debian/changelog
===================================================================
--- trunk/packages/vista/trunk/debian/changelog 2012-07-07 14:43:42 UTC (rev 11621)
+++ trunk/packages/vista/trunk/debian/changelog 2012-07-07 15:09:43 UTC (rev 11622)
@@ -11,6 +11,7 @@
Reorganized the dh_auto_install section.
Enable CLEAN_DATABASE to trigger the importing of routines and globals.
Specify that auto_install is in the debian directory.
+ Added process for importing routines and globals into VistA instance.
* debian/copyright:
Addressing lintian warning: missing-license-paragraph-in-dep5-copyright,
added a paragraph stating where to find the license file.
More information about the debian-med-commit
mailing list