Commit 2728b2c6 authored by Franco Fichtner's avatar Franco Fichtner

unify directory layout with e.g. core.git

parent a86d767e
...@@ -74,7 +74,7 @@ PLUGINSDIRS= ${_PLUGINSDIRS:S/^/${PLUGINSDIR}\//g} ...@@ -74,7 +74,7 @@ PLUGINSDIRS= ${_PLUGINSDIRS:S/^/${PLUGINSDIR}\//g}
${TEMPLATE}: ${TEMPLATE}:
@cp ${.CURDIR}/Volt.pm ${PERL_DIR}/${PERL_NAME}/ @cp ${.CURDIR}/Volt.pm ${PERL_DIR}/${PERL_NAME}/
@: > ${TEMPLATE}.pot @: > ${TEMPLATE}.pot
.for ROOTDIR in ${PLUGINSDIRS} ${COREDIR} .for ROOTDIR in ${PLUGINSDIRS} ${LANGDIR} ${COREDIR}
${XGETTEXT_PL} -D ${ROOTDIR}/src -p ${.CURDIR} -o ${TEMPLATE}.pot ${XGETTEXT_PL} -D ${ROOTDIR}/src -p ${.CURDIR} -o ${TEMPLATE}.pot
find ${ROOTDIR}/src -print0 | \ find ${ROOTDIR}/src -print0 | \
xargs -0 ${XGETTEXT} -j -o ${.CURDIR}/${TEMPLATE}.pot xargs -0 ${XGETTEXT} -j -o ${.CURDIR}/${TEMPLATE}.pot
...@@ -87,7 +87,7 @@ install: ${INSTALL} ...@@ -87,7 +87,7 @@ install: ${INSTALL}
clean: ${CLEAN} clean: ${CLEAN}
merge: ${MERGE} merge: ${MERGE}
dynamic: src:
@${.CURDIR}/dynamic/collect.py ${PLUGINSDIRS} ${COREDIR} @${.CURDIR}/scripts/collect.py ${PLUGINSDIRS} ${COREDIR}
.PHONY: ${INSTALL} ${MERGE} ${TEMPLATE} dynamic .PHONY: ${INSTALL} ${MERGE} ${TEMPLATE} src
...@@ -6,10 +6,10 @@ from the source code. You'll need to run this once locally: ...@@ -6,10 +6,10 @@ from the source code. You'll need to run this once locally:
# pkg install gettext-tools p5-Locale-Maketext-Lexicon python27 # pkg install gettext-tools p5-Locale-Maketext-Lexicon python27
Regenerate dynamic strings that can't be found in the template Regenerate source strings that can't be found in the template
generation step (XML contents, etc.): generation step (XML contents, etc.):
# make dynamic # make src
Regenerate the translation template using: Regenerate the translation template using:
......
...@@ -40,7 +40,7 @@ if len(sys.argv) < 2: ...@@ -40,7 +40,7 @@ if len(sys.argv) < 2:
RootPaths = sys.argv[1:] RootPaths = sys.argv[1:]
# create target location # create target location
targetPath = 'helpers' targetPath = 'src'
if len(glob.glob(targetPath)) == 0: if len(glob.glob(targetPath)) == 0:
os.mkdir(targetPath) os.mkdir(targetPath)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment