From 696536f135b175488184345ce78de24d28c13ba4 Mon Sep 17 00:00:00 2001 From: skeezix Date: Sat, 7 Mar 2009 05:33:47 -0500 Subject: [PATCH] Brought over pnd_hup.sh Added CROSSCOMPILE env to gcc in hopes of making djw's life easier --- Makefile | 2 +- testdata/scripts/pnd_hup.sh | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) 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 -- 2.39.5