$OpenBSD: patch-templates_autoformat_Makefile_in,v 1.2 2005/05/27 17:50:26 marcm Exp $
--- templates/autoformat/Makefile.in.orig	Sat Jan 15 18:01:28 2005
+++ templates/autoformat/Makefile.in	Sun Feb 20 19:31:48 2005
@@ -472,13 +472,15 @@ install-data-local:
 		    < $(srcdir)/$$cat.category.in			\
 		    > $$dir/.category 	;				\
 		for f in $(srcdir)/autoformat.$$cat.*.xml.in ; do	\
-			echo "	$${f#$(srcdir)/autoformat.$$cat.}" ;	\
+			f1=`echo $${f} | sed -e 's/$(srcdir)/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%.in}` ;		\
+			    > $$dir/`basename $${f2}` ;			\
 		done							\
 	done
 
