[Lunar-commits] r17205 - moonbase/branches/submissions/reviewed-once/grass

Dennis Veatch stumbles at lunar-linux.org
Mon Nov 7 15:44:36 UTC 2005


Author: stumbles
Date: 2005-11-07 15:44:32 +0000 (Mon, 07 Nov 2005)
New Revision: 17205

Added:
   moonbase/branches/submissions/reviewed-once/grass/POST_INSTALL
   moonbase/branches/submissions/reviewed-once/grass/PRE_BUILD
Log:

Well given the grass developers insist on the ability to have multiple
versions of grass laying around. Figured I'd try following the methods
used by the perl module.

It installs fine and will wait for them to bump another version to see 
if this really works.




Added: moonbase/branches/submissions/reviewed-once/grass/POST_INSTALL
===================================================================
--- moonbase/branches/submissions/reviewed-once/grass/POST_INSTALL	2005-11-07 10:33:05 UTC (rev 17204)
+++ moonbase/branches/submissions/reviewed-once/grass/POST_INSTALL	2005-11-07 15:44:32 UTC (rev 17205)
@@ -0,0 +1,9 @@
+#  Reinstall anything else it might want.
+if [ -n "$OLD_GRASS_VERSION" ] ; then
+	GRASSMODS="$( (lvu from /usr/grass?/$OLD_GRASS_VERSION/; lvu from /usr/grass?/$OLD_GRASS_VERSION/) | cut -d: -f1 | uniq | grep -v grass)"
+	for GRASSMOD in $(sort_by_dependency $GRASSMODS); do
+		lin -c $GRASSMOD || true
+	done
+	unset_module_config OLD_GRASS_VERSION
+fi
+

Added: moonbase/branches/submissions/reviewed-once/grass/PRE_BUILD
===================================================================
--- moonbase/branches/submissions/reviewed-once/grass/PRE_BUILD	2005-11-07 10:33:05 UTC (rev 17204)
+++ moonbase/branches/submissions/reviewed-once/grass/PRE_BUILD	2005-11-07 15:44:32 UTC (rev 17205)
@@ -0,0 +1,9 @@
+unset_module_config OLD_GRASS_VERSION
+if [ "$(installed_version grass)" != "$VERSION" ]; then
+  set_module_config OLD_GRASS_VERSION $(installed_version grass)
+fi &&
+if module_installed grass ; then
+  lrm --upgrade grass
+fi &&
+
+default_pre_build



More information about the Lunar-commits mailing list