[Pkg-freedict-commits] r18 -
/packages/freedict-tools/trunk/debian/patches/002_scriptdir_in_Makefile.common.diff
joostvb at users.alioth.debian.org
joostvb at users.alioth.debian.org
Thu Dec 28 10:07:46 CET 2006
Author: joostvb
Date: Thu Dec 28 10:07:46 2006
New Revision: 18
URL: http://svn.debian.org/wsvn/pkg-freedict/?sc=1&rev=18
Log:
oops, forgot to add this patch to svn
Added:
packages/freedict-tools/trunk/debian/patches/002_scriptdir_in_Makefile.common.diff
Added: packages/freedict-tools/trunk/debian/patches/002_scriptdir_in_Makefile.common.diff
URL: http://svn.debian.org/wsvn/pkg-freedict/packages/freedict-tools/trunk/debian/patches/002_scriptdir_in_Makefile.common.diff?rev=18&op=file
==============================================================================
--- packages/freedict-tools/trunk/debian/patches/002_scriptdir_in_Makefile.common.diff (added)
+++ packages/freedict-tools/trunk/debian/patches/002_scriptdir_in_Makefile.common.diff Thu Dec 28 10:07:46 2006
@@ -1,0 +1,45 @@
+Index: Makefile.common
+===================================================================
+--- Makefile.common.orig 2006-12-21 10:00:18.511037142 +0100
++++ Makefile.common 2006-12-21 10:07:42.158742931 +0100
+@@ -1,3 +1,4 @@
++
+ toolsdir := $(FREEDICTDIR)/tools
+ include $(toolsdir)/Makefile.config
+
+@@ -7,13 +8,15 @@
+
+ SHELL=bash
+
++scriptsdir ?= $(toolsdir)
++
+ available_platforms := dictd evolutionary bedic stardict aspell d4m fo
+
+-xsldir := $(toolsdir)/xsl
++xsldir ?= $(toolsdir)/xsl
+ tei2dict := $(toolsdir)/xmltei2xmldict.pl -n $(NSGMLS) -d $(XMLDECLARATION)
+ xmllint := /usr/bin/xmllint
+
+-dictname := $(shell basename "$(shell pwd)")
++dictname ?= $(shell basename "$(shell pwd)")
+ rdictname := $(shell export V=$(dictname); echo $${V:4:3}-$${V:0:3})
+
+ # Extracting the tiny edition element contents per XSLT is
+@@ -482,7 +485,7 @@
+ #### Phonetics import
+ #######################
+
+-supported_phonetics = $(shell $(toolsdir)/teiaddphonetics -li)
++supported_phonetics ?= $(shell $(scriptsdir)/teiaddphonetics -li)
+
+ la1 := $(shell export V=$(dictname); echo $${V:0:3})
+ #la2 := $(shell export V=$(dictname); echo $${V:4:3})
+@@ -490,7 +493,7 @@
+ ifneq (,$(findstring $(la1),$(supported_phonetics)))
+
+ $(dictname).tei: $(dictname)-nophon.tei
+- $(toolsdir)/teiaddphonetics -i $< -ou $@ -mbrdico-path $(MBRDICO_PATH)
++ $(scriptsdir)/teiaddphonetics -i $< -ou $@ -mbrdico-path $(MBRDICO_PATH)
+
+ endif
+
More information about the Pkg-freedict-commits
mailing list