diff options
author | wulf <wulf@pkgsrc.org> | 2003-07-05 09:07:55 +0000 |
---|---|---|
committer | wulf <wulf@pkgsrc.org> | 2003-07-05 09:07:55 +0000 |
commit | 36c6c711348cb584192f3e27e2a4a888a37fcc97 (patch) | |
tree | eb484ff5cdcae0e65017ff546eb5d880dc7986b4 /x11/xplanet/patches/patch-ad | |
parent | 6cbb438477a26b9b908c81e0363348407abff342 (diff) | |
download | pkgsrc-36c6c711348cb584192f3e27e2a4a888a37fcc97.tar.gz |
Updated to xplanet-1.0.1, rewrite of older version
Diffstat (limited to 'x11/xplanet/patches/patch-ad')
-rw-r--r-- | x11/xplanet/patches/patch-ad | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/x11/xplanet/patches/patch-ad b/x11/xplanet/patches/patch-ad deleted file mode 100644 index e3b4c16c493..00000000000 --- a/x11/xplanet/patches/patch-ad +++ /dev/null @@ -1,57 +0,0 @@ -$NetBSD: patch-ad,v 1.1 2002/04/04 16:47:55 atatat Exp $ - -Add support for $XPLANET/images and $HOME/.xplanet/images images, etc. - ---- util.cc.orig Tue Jan 22 21:07:42 2002 -+++ util.cc Tue Apr 2 22:43:04 2002 -@@ -28,6 +28,7 @@ - using namespace std; - - #include <errno.h> -+#include <stdlib.h> - #include <sys/time.h> - - #include "auxfiles.h" -@@ -339,7 +340,41 @@ - filename = newname; - return(true); - } -- -+ -+ char *xplanet = getenv("XPLANET"); -+ if (xplanet != NULL) -+ { -+ newname = xplanet; -+ newname += separator; -+ newname += "images"; -+ newname += separator; -+ newname += filename; -+ -+ if (fileExists(newname)) -+ { -+ filename = newname; -+ return(true); -+ } -+ } -+ -+ char *home = getenv("HOME"); -+ if (home != NULL) -+ { -+ newname = home; -+ newname += separator; -+ newname += ".xplanet"; -+ newname += separator; -+ newname += "images"; -+ newname += separator; -+ newname += filename; -+ -+ if (fileExists(newname)) -+ { -+ filename = newname; -+ return(true); -+ } -+ } -+ - newname = prefix; - newname += separator; - newname += "images"; |