[PC-BSD Commits] r171 - pcbsd/trunk/system-overlay/usr/Programs/.bin

svn at pcbsd.org svn at pcbsd.org
Wed Apr 11 14:44:09 PDT 2007


Author: kris
Date: 2007-04-11 22:44:09 +0100 (Wed, 11 Apr 2007)
New Revision: 171

Modified:
   pcbsd/trunk/system-overlay/usr/Programs/.bin/RemoveDesktopLink.sh
Log:
Updated PBI Remove Links Script

Modified: pcbsd/trunk/system-overlay/usr/Programs/.bin/RemoveDesktopLink.sh
===================================================================
--- pcbsd/trunk/system-overlay/usr/Programs/.bin/RemoveDesktopLink.sh	2007-04-11 21:41:22 UTC (rev 170)
+++ pcbsd/trunk/system-overlay/usr/Programs/.bin/RemoveDesktopLink.sh	2007-04-11 21:44:09 UTC (rev 171)
@@ -1,16 +1,57 @@
-#!/bin/sh
-
-if [ "$1" = "" ]
-then
- exit
-fi
-
-cd /home
-
-for i in `ls`
-do
-   if [ -f "${i}/Desktop/${1}" ]
-   then
-     rm ${i}/Desktop/${1}
-   fi
-done
+#!/bin/sh
+
+if [ "$1" = "" ]
+then
+ exit
+fi
+
+cd /home
+
+for i in `ls`
+do
+   if [ -f "${i}/Desktop/${1}" ]
+   then
+     rm ${i}/Desktop/${1}
+   fi
+done
+
+# Check for the PBI Directory in the applnk/<subfolders> directories
+cd /usr/local/share/applnk
+for j in `ls`
+do
+   if [ -d "/usr/local/share/applnk/${j}/${2}/" ]
+   then
+     rm -rf "/usr/local/share/applnk/${j}/${2}"
+   fi
+done
+
+# Check the "Games" Subdirs   
+if [ -d "/usr/local/share/applnk/Games/Arcade/${2}/" ]
+then
+   rm -rf "/usr/local/share/applnk/Games/Arcade/${2}"
+fi
+
+if [ -d "/usr/local/share/applnk/Games/Board/${2}/" ]
+then
+   rm -rf "/usr/local/share/applnk/Games/Board/${2}"
+fi
+
+if [ -d "/usr/local/share/applnk/Games/Card/${2}/" ]
+then
+   rm -rf "/usr/local/share/applnk/Games/Card/${2}"
+fi
+
+if [ -d "/usr/local/share/applnk/Games/Kidsgames/${2}/" ]
+then
+   rm -rf "/usr/local/share/applnk/Games/Kidsgames/${2}"
+fi
+
+if [ -d "/usr/local/share/applnk/Games/Roguelikes/${2}/" ]
+then
+   rm -rf "/usr/local/share/applnk/Games/Roguelikes/${2}"
+fi
+
+if [ -d "/usr/local/share/applnk/Games/TacticStrategy/${2}/" ]
+then
+   rm -rf "/usr/local/share/applnk/Games/TacticStrategy/${2}"
+fi



More information about the Commits mailing list