Jean-Marc Lasgouttes wrote:
rgheck <[EMAIL PROTECTED]> writes:
One other small thing. Instead of the repeated directory creation
stuff, what about something like this:
function mkpath {
base=shift;
for dir in $*; do
base="$base/$dir";
if test -d $base; then continue; fi
mkdir $base;
done
}
to be called as:
mkpath ${HOME}/Library texmf tex latex lyx;
Not tested, though.
What is wrong about directly calling "mkdir -p" to create the deepest
directory and the other ones as needed?
I was assuming the script was supposed to run on a very minimal shell.
Is this always supported?
rh