Skip to content

Commit

Permalink
git-svn-id: svn://cherokee-project.com/cherokee/trunk@1465 5dc97367-9…
Browse files Browse the repository at this point in the history
…7f1-0310-9951-d761b3857238
  • Loading branch information
alobbs committed May 24, 2008
1 parent e5d1be4 commit b5f2a25
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 8 deletions.
10 changes: 10 additions & 0 deletions ChangeLog
@@ -1,3 +1,13 @@
2008-05-24 Alvaro Lopez Ortega <alvaro@alobbs.com>

* cherokee/Makefile.am (INCLUDES), cget/Makefile.am: Added a new
-I entry for the C compiler. It was needed to allow to work in a
VPATH environment.

* doc/build_docs.py (main), doc/Makefile.am: A few path management
issues have been fixed. There were a couple of VPATH compiling
issues because of this problem.

2008-05-23 Alvaro Lopez Ortega <alvaro@alobbs.com>

* cherokee/Makefile.am (libplugin_server_info_la_LIBADD): This
Expand Down
1 change: 1 addition & 0 deletions cget/Makefile.am
@@ -1,6 +1,7 @@
## Cherokee: src/cget/Makefile.am -*- makefile -*-

INCLUDES = -I. \
-I${top_srcdir} \
-I${top_srcdir}/cherokee \
$(TLS_CFLAGS) \
$(PTHREAD_CFLAGS) \
Expand Down
1 change: 1 addition & 0 deletions cherokee/Makefile.am
@@ -1,6 +1,7 @@
## Cherokee: cherokee/Makefile.am -*- makefile -*-

INCLUDES = \
-I${top_srcdir} \
$(TLS_CFLAGS) \
$(PTHREAD_CFLAGS)

Expand Down
4 changes: 3 additions & 1 deletion configure.in
Expand Up @@ -1205,8 +1205,10 @@ for mod in $modules; do
fi
done

AC_MSG_CHECKING([loader.autoconf files])
printf "$ext_defs\n" > ${srcdir}/cherokee/loader.autoconf.h
printf "$headers \n\n $add_calls \n\n $init_calls\n" > ${srcdir}/cherokee/loader.autoconf.inc
AC_MSG_RESULT([done])

dnl
dnl Static/Dynamic modules
Expand Down Expand Up @@ -1242,7 +1244,7 @@ AM_CONDITIONAL(STATIC_RULE_DIRECTORY, grep directory $conf_h >/dev/
AM_CONDITIONAL(STATIC_RULE_EXTENSIONS, grep extensions $conf_h >/dev/null)
AM_CONDITIONAL(STATIC_RULE_REQUEST, grep request $conf_h >/dev/null)
AM_CONDITIONAL(STATIC_RULE_HEADER, grep header $conf_h >/dev/null)
# These must the at the end
# These must be at the end
AM_CONDITIONAL(STATIC_RULE_NOT, grep _not_ $conf_h >/dev/null)
AM_CONDITIONAL(STATIC_RULE_AND, grep _and_ $conf_h >/dev/null)
AM_CONDITIONAL(STATIC_RULE_OR, grep _or_ $conf_h >/dev/null)
Expand Down
2 changes: 1 addition & 1 deletion doc/Makefile.am
Expand Up @@ -100,4 +100,4 @@ $(GENERATED_FILES)

.NOTPARALLEL: $(GENERATED_FILES)
$(GENERATED_FILES):
python build_docs.py -v
python $(top_srcdir)/doc/build_docs.py -v
14 changes: 8 additions & 6 deletions doc/build_docs.py
Expand Up @@ -67,16 +67,17 @@ def depart_block_quote(self, node):
return publish_parts(text, writer=CherokeeHTMLWriter())

def main():
output_dir = '.'
output_dir = './'

#
# Check parameters
#
verbose = False
if '-v' in sys.argv:
verbose = True
sys.argv.remove('-v')

sys.argv.remove('-v')

prefix = os.path.dirname(sys.argv[0])

#
# get the language to compile
Expand All @@ -87,7 +88,7 @@ def main():
except IndexError:
lang = 'en'
finally:
lang_dir = 'locale/%s/' % lang
lang_dir = os.path.join (prefix, 'locale', lang)
if not os.path.exists(lang_dir):
print ('language %s does not exist.' % lang)
raise SystemExit
Expand All @@ -100,7 +101,8 @@ def main():
'TEMPLATE_DEBUG': False,
'TEMPLATE_LOADERS':
('django.template.loaders.filesystem.load_template_source',),
'TEMPLATE_DIRS': ('templates/',)
'TEMPLATE_DIRS':
(os.path.join (prefix, 'templates'),)
})

doc_detail_template = get_template('doc_detail.html')
Expand Down Expand Up @@ -139,7 +141,7 @@ def main():
else:
parts = {'title': 'Unknown', 'body': 'No docutils found.'}

write_dir = os.path.join(output_dir, d.replace(lang_dir, ''))
write_dir = os.path.normpath (output_dir + d.replace(lang_dir, ''))

if not os.path.exists(write_dir):
os.mkdir(write_dir)
Expand Down

0 comments on commit b5f2a25

Please sign in to comment.