Patch for subversion-1.6.5 to change the default location of the config-dir on Haiku from ~/.subversion to /boot/home/config/settings/subversion

This commit is contained in:
Scott McCreary
2009-09-02 21:55:01 +00:00
parent ff148e1228
commit 9d64dae685

View File

@@ -0,0 +1,13 @@
diff -urN subversion-1.6.5/subversion/libsvn_subr/config_impl.h subversion-1.6.5-haiku/subversion/libsvn_subr/config_impl.h
--- subversion-1.6.5/subversion/libsvn_subr/config_impl.h 2009-01-27 13:23:50.000000000 +0000
+++ subversion-1.6.5-haiku/subversion/libsvn_subr/config_impl.h 2009-09-02 13:43:03.000000000 +0000
@@ -109,6 +109,9 @@
or svn_config_get_user_config_path() instead. */
#ifdef WIN32
# define SVN_CONFIG__SUBDIRECTORY "Subversion"
+#elif defined __HAIKU__ /* HAIKU */
+# define SVN_CONFIG__SYS_DIRECTORY "/boot/common/etc/subversion"
+# define SVN_CONFIG__USR_DIRECTORY "/boot/home/config/settings/subversion"
#else /* ! WIN32 */
# define SVN_CONFIG__SYS_DIRECTORY "/etc/subversion"
# define SVN_CONFIG__USR_DIRECTORY ".subversion"