Revision: 54072
          http://brlcad.svn.sourceforge.net/brlcad/?rev=54072&view=rev
Author:   jordisayol
Date:     2012-12-16 23:03:20 +0000 (Sun, 16 Dec 2012)
Log Message:
-----------
update Linux deb/rpm remove scrips

Modified Paths:
--------------
    brlcad/trunk/misc/debian/brlcad.postrm
    brlcad/trunk/sh/make_rpm.sh

Modified: brlcad/trunk/misc/debian/brlcad.postrm
===================================================================
--- brlcad/trunk/misc/debian/brlcad.postrm      2012-12-16 21:35:28 UTC (rev 
54071)
+++ brlcad/trunk/misc/debian/brlcad.postrm      2012-12-16 23:03:20 UTC (rev 
54072)
@@ -1,13 +1,14 @@
 #!/bin/sh
 
 file="/usr/share/applications/mimeapps.list"
+section="Added Associations"
 
 if [ -f $file ]
 then
        sed --follow-symlinks -i "/application\/brlcad-v[45]/d" $file
 fi
 
-if [ -f $file ] && [ -z "$(sed "/\[Added Associations\]/d" $file)" ]
+if [ -f $file ] && [ -z "$(sed "/\[$section\]/d" $file)" ]
 then
        rm $file || :
 fi

Modified: brlcad/trunk/sh/make_rpm.sh
===================================================================
--- brlcad/trunk/sh/make_rpm.sh 2012-12-16 21:35:28 UTC (rev 54071)
+++ brlcad/trunk/sh/make_rpm.sh 2012-12-16 23:03:20 UTC (rev 54072)
@@ -263,13 +263,14 @@
 %postun
 
 file="/usr/share/applications/mimeapps.list"
+section="Added Associations"
 
 if [ -f $file ] && [ $1 -eq 0 ]
 then
     sed --follow-symlinks -i "/application\/brlcad-v[45]/d" $file
 fi
 
-if [ -f $file ] && [ -z "$(sed "/\[Added Associations\]/d" $file)" ]
+if [ -f $file ] && [ -z "$(sed "/\[$section\]/d" $file)" ]
 then
     rm $file || :
 fi

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


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to