summaryrefslogtreecommitdiffstats
path: root/textproc/gnome-doc-utils
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2005-08-09 12:18:52 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2005-08-09 12:18:52 +0800
commitb4e4228bb1c319576f81db6fdc854eb0407db2cd (patch)
tree919bda9aca704f1378012e01428947c05187ab40 /textproc/gnome-doc-utils
parent6fbe0fe16ab5aa14fa7389317b9875b6c3a22ecf (diff)
downloadmarcuscom-ports-b4e4228bb1c319576f81db6fdc854eb0407db2cd.tar
marcuscom-ports-b4e4228bb1c319576f81db6fdc854eb0407db2cd.tar.gz
marcuscom-ports-b4e4228bb1c319576f81db6fdc854eb0407db2cd.tar.bz2
marcuscom-ports-b4e4228bb1c319576f81db6fdc854eb0407db2cd.tar.lz
marcuscom-ports-b4e4228bb1c319576f81db6fdc854eb0407db2cd.tar.xz
marcuscom-ports-b4e4228bb1c319576f81db6fdc854eb0407db2cd.tar.zst
marcuscom-ports-b4e4228bb1c319576f81db6fdc854eb0407db2cd.zip
Use different sed commands that are portable to FreeBSD and Solaris.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4432 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'textproc/gnome-doc-utils')
-rw-r--r--textproc/gnome-doc-utils/files/patch-gnome-doc-utils.make33
1 files changed, 9 insertions, 24 deletions
diff --git a/textproc/gnome-doc-utils/files/patch-gnome-doc-utils.make b/textproc/gnome-doc-utils/files/patch-gnome-doc-utils.make
index b25e207fa..78830835c 100644
--- a/textproc/gnome-doc-utils/files/patch-gnome-doc-utils.make
+++ b/textproc/gnome-doc-utils/files/patch-gnome-doc-utils.make
@@ -1,44 +1,29 @@
---- gnome-doc-utils.make.orig Mon Aug 8 22:28:23 2005
-+++ gnome-doc-utils.make Mon Aug 8 22:33:07 2005
-@@ -35,19 +35,19 @@
+--- gnome-doc-utils.make.orig Tue Aug 9 00:14:45 2005
++++ gnome-doc-utils.make Tue Aug 9 00:16:26 2005
+@@ -35,7 +35,7 @@
@rm -f $@.tmp; touch $@.tmp;
echo 'const gchar* documentation_credits[] = {' >> $@.tmp
for doc in $(DOC_H_DOCS); do \
- xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*\|.*/\1/'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*\|.*/\1/'`"; \
-+ xmlpath="`echo $$doc | sed -E -e 's/^(.*\/).*|.*/\1/'`:$(srcdir)/`echo $$doc | sed -E -e 's/^(.*\/).*|.*/\1/'`"; \
++ xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
xsltproc --path "$$xmlpath" $(_credits) $$doc; \
done | sort | uniq \
- | awk 'BEGIN{s=""}{n=split($$0,w,"<");if(s!=""&&s!=substr(w[1],1,length(w[1])-1)){print s};if(n>1){print $$0;s=""}else{s=$$0}};END{if(s!=""){print s}}' \
-- | sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
-+ | sed -E -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/(.*)/\t"\1",/' >> $@.tmp
- echo ' NULL' >> $@.tmp
+@@ -45,7 +45,7 @@
echo '};' >> $@.tmp
echo >> $@.tmp
for doc in $(DOC_H_DOCS); do \
- xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*\|.*/\1/'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*\|.*/\1/'`"; \
-+ xmlpath="`echo $$doc | sed -E -e 's/^(.*\/).*|.*/\1/'`:$(srcdir)/`echo $$doc | sed -E -e 's/^(.*\/).*|.*/\1/'`"; \
++ xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
-- docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
-+ docid=`echo "$$doc" | sed -E -e 's/.*\/([^/]*)\.xml/\1/' \
+ docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
- echo $$xmlpath; \
- ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
-@@ -194,7 +194,7 @@
- --stringparam db2omf.format $(3) \
- --stringparam db2omf.dtd \
- $(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1 \
-- | sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/') \
-+ | sed -E -e 's/.*PUBLIC (\"[^\"]*\").*/\1/') \
- --stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \
- --stringparam db2omf.omf_dir "$(OMF_DIR)" \
- --stringparam db2omf.help_dir "$(HELP_DIR)" \
@@ -586,7 +586,7 @@
@for fig in $(_DOC_C_FIGURES) $(_DOC_LC_FIGURES); do \
if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
if test -f "$$d$$fig"; then \
- figdir=`echo $$fig | sed -e 's/^\(.*\/\).*\|.*/\1/'`; \
-+ figdir=`echo $$fig | sed -E -e 's/^(.*\/).*|.*/\1/'`; \
++ figdir=`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
if ! test -d "$(distdir)/$$figdir"; then \
echo "$(mkinstalldirs) $(distdir)/$$figdir"; \
$(mkinstalldirs) "$(distdir)/$$figdir"; \
@@ -47,7 +32,7 @@
figfile="$(srcdir)/C/$$fig"; \
fi; \
- figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*\|.*/\1/'`; \
-+ figdir="$$lc/"`echo $$fig | sed -E -e 's/^(.*\/).*|.*/\1/'`; \
++ figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
figdir="$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$figdir"; \
if ! test -d "$$figdir"; then \
echo "$(mkinstalldirs) $$figdir"; \