changeset 538:b9c60ab31f0f

portable now?
author Henry Thompson <ht@markup.co.uk>
date Thu, 29 Aug 2024 22:04:12 +0100
parents 77dd70413ed8
children 1c827e21114f
files MHMC/htmlToXML.sh
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MHMC/htmlToXML.sh	Thu Aug 29 21:53:16 2024 +0100
+++ b/MHMC/htmlToXML.sh	Thu Aug 29 22:04:12 2024 +0100
@@ -1,4 +1,5 @@
 #!/usr/bin/bash
+HOME="$(cygpath -w $HOME)"
 { echo '<html xmlns="http://www.w3.org/1999/xhtml"><body>' 
   cat "$1".html ; echo '</body></html>' 
- } | saxon97 - H:\\C64\\home\\ht\\lib\\xml\\htmlToXML.xsl  > "${1-2}".xml
+ } | saxon97 - "$HOME"\\lib\\xml\\htmlToXML.xsl  > "${1-2}".xml