guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.1-122-g28401


From: Andy Wingo
Subject: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.1-122-g284019a
Date: Thu, 16 Jun 2011 22:01:56 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Guile".

http://git.savannah.gnu.org/cgit/guile.git/commit/?id=284019a2a5cfd7c7734701671f6a1776f11211eb

The branch, stable-2.0 has been updated
       via  284019a2a5cfd7c7734701671f6a1776f11211eb (commit)
      from  a67f2fce5456caf8e63dacb110b8e15600bb1c9f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 284019a2a5cfd7c7734701671f6a1776f11211eb
Author: Jan Nieuwenhuizen <address@hidden>
Date:   Tue Feb 15 16:35:03 2011 +0100

    mingw: use $APPDATA as a possible root for cachedir.
    
    * libguile/load.c (scm_init_load_path) [MINGW32]: Fall back to using
    $LOCALAPPDATA or $APPDATA if $XDG_CACHE_HOME and $HOME aren't set.

-----------------------------------------------------------------------

Summary of changes:
 libguile/load.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/libguile/load.c b/libguile/load.c
index fa19a2a..8cc08e8 100644
--- a/libguile/load.c
+++ b/libguile/load.c
@@ -293,6 +293,12 @@ scm_init_load_path ()
       snprintf (cachedir, sizeof(cachedir), "%s/.cache/" FALLBACK_DIR,
                 pwd->pw_dir);
 #endif /* HAVE_GETPWENT */
+#ifdef __MINGW32__
+    else if ((e = getenv ("LOCALAPPDATA")))
+      snprintf (cachedir, sizeof (cachedir), "%s/.cache/" FALLBACK_DIR, e);
+    else if ((e = getenv ("APPDATA")))
+      snprintf (cachedir, sizeof (cachedir), "%s/.cache/" FALLBACK_DIR, e);
+#endif /* __MINGW32__ */
     else
       cachedir[0] = 0;
 


hooks/post-receive
-- 
GNU Guile



reply via email to

[Prev in Thread] Current Thread [Next in Thread]