#10 xmlto: convert output path to unix path on cygwin/msys
Merged 2 months ago by osloup. Opened 2 years ago by elmarco.
elmarco/xmlto fix-cygwinmsys-outdir  into  master

file modified
+7 -3
@@ -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

  	shift 2

  	;;

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

2 years ago

Pull-Request has been merged by osloup

2 months ago
Metadata