[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    [RFC/PATCH] mailing installation problem messages?
From:       Oswald Buddenhagen <ossi () kde ! org>
Date:       2001-11-04 18:25:52
[Download RAW message or body]

hi,

what do you think about this patch?

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.


Index: kdm/Makefile.am
===================================================================
RCS file: /home/kde/kdebase/kdm/Makefile.am,v
retrieving revision 1.74
diff -u -r1.74 Makefile.am
--- kdm/Makefile.am	2001/09/14 15:36:06	1.74
+++ kdm/Makefile.am	2001/11/04 18:22:12
@@ -6,4 +6,4 @@
 PAM = @KDM_PAM_SERVICE@
 
 install-data-local:
-	-@test -n "$(DESTDIR)" || test -z "$(PAM)" || $(top_srcdir)/mkpamserv $(PAM)
+	@test -n "$(DESTDIR)" || test -z "$(PAM)" || $(top_srcdir)/mailerror kdm \
                $(top_srcdir)/mkpamserv $(PAM)
Index: kcheckpass/Makefile.am
===================================================================
RCS file: /home/kde/kdebase/kcheckpass/Makefile.am,v
retrieving revision 1.20
diff -u -r1.20 Makefile.am
--- kcheckpass/Makefile.am	2001/07/15 11:28:36	1.20
+++ kcheckpass/Makefile.am	2001/11/04 18:22:12
@@ -21,4 +21,4 @@
 PAM = @KCHECKPASS_PAM_SERVICE@
 
 install-data-local:
-	@test -n "$(DESTDIR)" || test -z "$(PAM)" || $(top_srcdir)/mkpamserv $(PAM)
+	@test -n "$(DESTDIR)" || test -z "$(PAM)" || $(top_srcdir)/mailerror kcheckpass \
                $(top_srcdir)/mkpamserv $(PAM)
Index: kdesktop/Makefile.am
===================================================================
RCS file: /home/kde/kdebase/kdesktop/Makefile.am,v
retrieving revision 1.72
diff -u -r1.72 Makefile.am
--- kdesktop/Makefile.am	2001/09/14 15:36:06	1.72
+++ kdesktop/Makefile.am	2001/11/04 18:22:12
@@ -51,4 +51,4 @@
 PAM = @KSCREENSAVER_PAM_SERVICE@
 
 install-data-local:
-	-@test -n "$(DESTDIR)" || test -z "$(PAM)" || $(top_srcdir)/mkpamserv $(PAM)
+	@test -n "$(DESTDIR)" || test -z "$(PAM)" || $(top_srcdir)/mailerror "kdesktop \
                (screensaver)" $(top_srcdir)/mkpamserv $(PAM)
Index: mailerror
===================================================================
RCS file: mailerror
diff -N mailerror
--- /dev/null	Tue May  5 20:32:27 1998
+++ mailerror	Sun Nov  4 18:22:12 2001
@@ -0,0 +1,15 @@
+#! /bin/sh
+prg=$1; shift
+err=`eval "$@" 2>&1` && ok=1
+echo "$err"
+test $ok && exit 0
+test -z "$LOGNAME" && LOGNAME=$USER
+cat <<EOF | mail -s "make: KDE installation problem" $LOGNAME
+This message has been mailed to you by "make install", so you don't miss
+it in case you didn't watch the output.
+
+A problem occured while installing $prg.
+"$*" printed the following message:
+$err
+EOF
+echo "************* mail sent to $LOGNAME *************"



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic