Date: Thu, 27 Jul 2000 22:19:52 +0200
From: Jamie Lokier <lk@tantalophile.demon.co.uk>
Theodore Y. Ts'o wrote:
> + mkdir -p $$MODLIB; \
> + rm -f $$MODLIB/build; \
> + ln -s `pwd` $$MODLIB/build; \
If $$MODLIB already exists and is a directory, you'll be creating a
link inside that directory which is probably not what you want.
Perhaps:
test -e $$MODLIB/build || ln -s `pwd` $$MODLIB/build
Umm, did you notice the "rm -f" command before the "ln -s"?
This was to take care of the case where $$MODLIB/build exists, but
doesn't (necessarily) point to the right place. In your suggested case,
if $$MODLIB/build is present by points to the wrong location, it won't
get fixed.
- Ted
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Mon Jul 31 2000 - 21:00:24 EST