0cd33d1
@@ -314,9 +314,13 @@
shift 2
;;
-o)
- case "$2" in
- /*) OUTPUT_DIR="$2" ;;
- *) OUTPUT_DIR="$WD/$2" ;;
+ OUTPUT_DIR="$2"
+ if type -p cygpath >/dev/null; then
+ OUTPUT_DIR=$(cygpath "$OUTPUT_DIR")
+ fi
+ case "$OUTPUT_DIR" in
+ /*) OUTPUT_DIR="$OUTPUT_DIR" ;;
+ *) OUTPUT_DIR="$WD/$OUTPUT_DIR" ;;
esac
When xmlto is invoked with "-o C:/src/build", the resulting files end up under a subdirecty "C:/src/build/" of the current working directory.
Convert the argument to a unix path on cygwin/msys.
Signed-off-by: Marc-André Lureau marcandre.lureau@redhat.com
rebased onto 0cd33d1
Pull-Request has been merged by osloup
When xmlto is invoked with "-o C:/src/build", the
resulting files end up under a subdirecty "C:/src/build/" of the current
working directory.
Convert the argument to a unix path on cygwin/msys.
Signed-off-by: Marc-André Lureau marcandre.lureau@redhat.com