openbsd-ports/math/gnumeric/patches/patch-templates_autoformat_Makefile_in

22 lines
835 B
Plaintext
Raw Normal View History

2004-12-10 15:39:22 -05:00
$OpenBSD: patch-templates_autoformat_Makefile_in,v 1.1 2004/12/10 20:39:22 marcm Exp $
--- templates/autoformat/Makefile.in.orig Tue Dec 7 22:21:23 2004
+++ templates/autoformat/Makefile.in Tue Dec 7 22:21:45 2004
@@ -470,13 +470,15 @@ install-data-local:
< $(srcdir)/$$cat.category.in \
> $$dir/.category ; \
for f in $(srcdir)/autoformat.$$cat.*.xml.in ; do \
- echo " $${f/.*autoformat.$$cat./}" ; \
+ f1=`echo $${f} | sed -e 's/.*autoformat.$$cat.//'`; \
+ f2=`echo $${f} | sed -e 's/.xml.in/.xml/'`; \
+ echo " $${f1}" ; \
sed \
-e 's/ _author *=/ author=/' \
-e 's/ _name *=/ name=/' \
-e 's/ _description *=/ description=/' \
< $$f \
- > $$dir/`basename $${f/.xml.in/.xml}` ; \
+ > $$dir/`basename $${f2}` ; \
done \
done