From: skeezix Date: Sat, 7 Mar 2009 10:33:47 +0000 (-0500) Subject: Brought over pnd_hup.sh X-Git-Tag: Release-2010-05/1~184 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=696536f135b175488184345ce78de24d28c13ba4;p=pandora-libraries.git Brought over pnd_hup.sh Added CROSSCOMPILE env to gcc in hopes of making djw's life easier --- diff --git a/Makefile b/Makefile index 91a9181..1d83936 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ # # tools -CC = gcc +CC = ${CROSSCOMPILE}gcc AR = ar RANLIB = ranlib RM = rm diff --git a/testdata/scripts/pnd_hup.sh b/testdata/scripts/pnd_hup.sh index c53cf12..9084f6d 100755 --- a/testdata/scripts/pnd_hup.sh +++ b/testdata/scripts/pnd_hup.sh @@ -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