SPECS: xmlto.spec - heredoc that doesn't get expanded in shell

glen glen at pld-linux.org
Tue Dec 25 23:45:54 CET 2007


Author: glen                         Date: Tue Dec 25 22:45:53 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- heredoc that doesn't get expanded in shell

---- Files affected:
SPECS:
   xmlto.spec (1.16 -> 1.17) 

---- Diffs:

================================================================
Index: SPECS/xmlto.spec
diff -u SPECS/xmlto.spec:1.16 SPECS/xmlto.spec:1.17
--- SPECS/xmlto.spec:1.16	Sun Dec 16 00:41:03 2007
+++ SPECS/xmlto.spec	Tue Dec 25 23:45:48 2007
@@ -43,17 +43,17 @@
 %configure
 %{__make}
 
-cat >refentry2man<<EOF
+cat > refentry2man <<'EOF'
 #!/bin/sh
-XMLTO_TMPFILE=\${TMPDIR:-/tmp}/\$(mktemp xmltoXXXXXX)
-XMLTO_TMPDIR=\${TMPDIR:-/tmp}/\$(mktemp xmltodirXXXXXX)
-rm -rf \$XMLTO_TMPDIR
-mkdir -p \$XMLTO_TMPDIR
-cat - > \$XMLTO_TMPFILE
-xmlto -o \$XMLTO_TMPDIR man \$XMLTO_TMPFILE >/dev/null
-cat \$XMLTO_TMPDIR/*
-rm -f \$XMLTO_TMPFILE
-rm -rf \$XMLTO_TMPDIR 
+XMLTO_TMPFILE=${TMPDIR:-/tmp}/$(mktemp xmltoXXXXXX)
+XMLTO_TMPDIR=${TMPDIR:-/tmp}/$(mktemp xmltodirXXXXXX)
+rm -rf $XMLTO_TMPDIR
+mkdir -p $XMLTO_TMPDIR
+cat - > $XMLTO_TMPFILE
+xmlto -o $XMLTO_TMPDIR man $XMLTO_TMPFILE >/dev/null
+cat $XMLTO_TMPDIR/*
+rm -f $XMLTO_TMPFILE
+rm -rf $XMLTO_TMPDIR
 EOF
 
 %install
@@ -80,6 +80,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.17  2007-12-25 22:45:48  glen
+- heredoc that doesn't get expanded in shell
+
 Revision 1.16  2007-12-15 23:41:03  qboosh
 - updated to 0.0.19
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/xmlto.spec?r1=1.16&r2=1.17&f=u



More information about the pld-cvs-commit mailing list