Mail Archives: djgpp/1997/07/01/09:54:04
On Tue, 1 Jul 1997, Robert Hoehne wrote:
> mkdir -p ${build_dir}
> tar -xzvf ${bnu_src}
These commands aren't portable to all Unix platforms. Some older
versions of Unix don't know about `mkdir -p', and the `z' modifier is
only supported by GNU `tar'. Of course, on Linux everything but the
kernel is from GNU, but at least a comment in the shell script should
mention potential portability problems. A better way would be to replace
`mkdir -p' by a shell loop that does the same (`mkinstalldirs' script in
every GNU source distribution does that) and use "gzip -d -c | tar xvf -"
pipe to unzip .tar.gz files.
- Raw text -