[csw-devel] SF.net SVN: gar:[8375] csw/mgar/pkg/cswclassutils/trunk/files

bonivart at users.sourceforge.net bonivart at users.sourceforge.net
Sun Feb 7 16:18:23 CET 2010


Revision: 8375
          http://gar.svn.sourceforge.net/gar/?rev=8375&view=rev
Author:   bonivart
Date:     2010-02-07 15:18:23 +0000 (Sun, 07 Feb 2010)

Log Message:
-----------
cswclassutils: add post install message script

Added Paths:
-----------
    csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswpostmsg
    csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.r.cswpostmsg

Added: csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswpostmsg
===================================================================
--- csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswpostmsg	                        (rev 0)
+++ csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswpostmsg	2010-02-07 15:18:23 UTC (rev 8375)
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# i.cswpostmsg - Class action script to display a message after install
+#
+# $Id: CSWcswclassutils.i.cswusergroup 6859 2009-10-14 14:04:00Z bdwalton $
+#
+# Written by Peter Bonivart
+#
+# 2010-02-07 First release
+#
+# Documentation: http://wiki.opencsw.org/cswclassutils-package
+
+DEBUG=		# clear to disable debug, set to anything to enable
+
+if [ "$DEBUG" ]; then
+  echo PACKAGE: $PKGINST
+fi
+
+# Copy files
+echo "Installing class <cswpostmsg> ..."
+
+while read src dest; do
+  if [ "$DEBUG" ]; then
+    echo SRC: $src DEST: $dest
+  fi
+
+  # Copy the conf-file
+  /usr/bin/cp $src $dest || exit 2
+
+  # display file if readable and regular
+  [ -f $dest -a -r $dest ] && cat $dest
+
+done
+
+exit 0

Added: csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.r.cswpostmsg
===================================================================
--- csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.r.cswpostmsg	                        (rev 0)
+++ csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.r.cswpostmsg	2010-02-07 15:18:23 UTC (rev 8375)
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# r.cswpostmsg - Class action script to display a message after install
+#
+# $Id: CSWcswclassutils.i.cswusergroup 6859 2009-10-14 14:04:00Z bdwalton $
+#
+# Written by Peter Bonivart
+#
+# 2010-02-07 First release
+#
+# Documentation: http://wiki.opencsw.org/cswclassutils-package
+
+DEBUG=		# clear to disable debug, set to anything to enable
+
+if [ "$DEBUG" ]; then
+  echo PACKAGE: $PKGINST
+fi
+
+# Removing files
+echo "Removing class <cswpostmsg> ..."
+
+while read dest; do
+  if [ "$DEBUG" ]; then
+    echo SRC: $src DEST: $dest
+  fi
+
+  echo $dest
+  rm -f $dest
+done
+
+exit 0


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list