[hackers] [dmenu] applied Jukka's fix

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Wed May 23 13:24:09 2007

changeset: 201:96f3661df2fe
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Wed May 23 13:22:27 2007 +0200
summary: applied Jukka's fix

diff -r d14fe4d89e3f -r 96f3661df2fe config.mk
--- a/config.mk Mon May 21 14:36:03 2007 +0200
+++ b/config.mk Wed May 23 13:22:27 2007 +0200
@@ -1,5 +1,5 @@
 # dmenu version
-VERSION = 3.1
+VERSION = 3.2
 
 # Customize below to fit your system
 
diff -r d14fe4d89e3f -r 96f3661df2fe dmenu_path
--- a/dmenu_path Mon May 21 14:36:03 2007 +0200
+++ b/dmenu_path Wed May 23 13:22:27 2007 +0200
@@ -3,20 +3,22 @@ UPTODATE=1
 UPTODATE=1
 IFS=:
 
+uptodate() { [ $UPTODATE -eq 1 ]; }
+
 if test ! -f $CACHE
 then
- unset UPTODATE
+ UPTODATE=0
 fi
 
-if test $UPTODATE
+if uptodate
 then
         for dir in $PATH
         do
- test $dir -nt $CACHE && unset UPTODATE
+ test $dir -nt $CACHE && { UPTODATE=0; break; }
         done
 fi
 
-if test ! $UPTODATE
+if ! uptodate
 then
         for dir in $PATH
         do
Received on Wed May 23 2007 - 13:24:09 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:56:46 UTC