#!/bin/sh # Unix to Windows path conversion in a script. # Useful for avoiding backslash quoting difficulties in Makefiles. # Acts as a much dumbed down cygpath tool mainly for use on MinGW. usage() { cat <&2; exit 1 ;; esac ;; -u) shift; echo $@ | sed -e 's,\\,/,g' ;; -w) shift; echo $@ | sed -e 's,/,\\,g' ;; -h) shift; usage; ;; *) usage; exit 1 ;; esac exit 0