Mail Archives: djgpp/1996/04/20/23:40:05
Reply to message 8098694 from ELIZ AT IS DOT ELTA. on 04/18/96 8:12AM
>The DJGPP port of GNU Make can use both forward and backward slashes. If
>you use the DOS-style backslashes, you should use them in pairs, because
>it is also an escape character. Also, you should know that the file- and
>directory-oriented functions built into GNU Make don't know about
>backslashes; if you need both, you need to convert the slashes with
>$(subst) function first.
>
>If you work with DJGPP programs, you can just use Unix-style slashes all
>the way.
I had a problem with getting programs like find to interface properly with
dos commands, so I wrote a little program called 'doscmd' that takes a
Unix-style command line and converts it into a DOS command line,
so:
find \cprogs -name "*.o" -exec doscmd del {} ';'
would work correctly. Essentially, it just changes all forward slashes to
backslashes, and all dashes to forward slashes (to simulate the fact that
most DOS programs use /* for parameters.)
The program isn't real fancy, but if anybody would like me to upload it,
send me email.
John
- Raw text -