From d847c45f743194b37fcaa804610a150b5f82af69 Mon Sep 17 00:00:00 2001 From: oroborus Date: Sat, 5 Jul 2008 20:09:11 +0000 Subject: - ide to aj pusti a najde si to svoje paths :) git-svn-id: http://opensvn.csie.org/tuxanci_ng@99 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- config.h | 2 +- src/base/main.h | 6 ------ src/base/path.h | 20 +++++++------------- 3 files changed, 8 insertions(+), 20 deletions(-) diff --git a/config.h b/config.h index f01e330..6e1079d 100644 --- a/config.h +++ b/config.h @@ -1,4 +1,4 @@ -#define TUXANCI_NG_VERSION "svn98" +#define TUXANCI_NG_VERSION "svn99" #define DESTDIR "/usr/local/" diff --git a/src/base/main.h b/src/base/main.h index fcf1f4d..a8e5503 100644 --- a/src/base/main.h +++ b/src/base/main.h @@ -5,12 +5,6 @@ #include "../../config.h" -#if defined PUBLIC_SERVER - -#undef DESTDIR - -#endif - #include "bool.h" #include "string_length.h" #include "path.h" diff --git a/src/base/path.h b/src/base/path.h index a99bf83..ceea00e 100644 --- a/src/base/path.h +++ b/src/base/path.h @@ -5,19 +5,14 @@ #include "main.h" -#ifdef DESTDIR - -#define PATH_DIR "share/tuxanci-ng/" - +#ifndef PUBLIC_SERVER +#define PATH_DIR "share/tuxanci-ng/" +#define PATH_MODULES DESTDIR "lib/tuxanci-ng/" #endif -#ifndef DESTDIR - -#define PATH_DIR "./" - -#undef DESTDIR -#define DESTDIR "" - +#ifdef PUBLIC_SERVER +#define PATH_DIR "share/tuxanci-ng-server/" +#define PATH_MODULES DESTDIR "lib/tuxanci-ng-server/" #endif #define PATH_IMAGE DESTDIR PATH_DIR "image/" @@ -28,6 +23,5 @@ #define PATH_CONFIG DESTDIR PATH_DIR "conf/" #define PATH_LANG DESTDIR PATH_DIR "lang/" #define PATH_DATA DESTDIR PATH_DIR "doc/" -#define PATH_MODULES DESTDIR "lib/tuxanci-ng/" -#endif +#endif -- cgit v1.2.3