Brought over pnd_hup.sh
authorskeezix <skeezix@flotsam-vm.(none)>
Sat, 7 Mar 2009 10:33:47 +0000 (05:33 -0500)
committerskeezix <skeezix@flotsam-vm.(none)>
Sat, 7 Mar 2009 10:33:47 +0000 (05:33 -0500)
Added CROSSCOMPILE env to gcc in hopes of making djw's life easier

Makefile
testdata/scripts/pnd_hup.sh

index 91a9181..1d83936 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@
 #
 
 # tools
-CC = gcc
+CC = ${CROSSCOMPILE}gcc
 AR = ar
 RANLIB = ranlib
 RM = rm
index c53cf12..9084f6d 100755 (executable)
@@ -1,3 +1,8 @@
-#!/bin/sh
-
-echo "pnd_hup script"
+#!/bin/bash
+#HUP all apps who happen to look into one of the .desktop locations
+PIDS=$(lsof +d /usr/share/applications  /usr/local/share/applications/ /home/*/Desktop /home/*/.applications /home/*/.local/share/applications | awk '!/PID/ {print $2 }' | uniq)
+for pid in $PIDS; do
+        kill -HUP $pid
+done