[tex-live] DESTDIR not working
Frank Küster
frank at kuesterei.ch
Mon Aug 21 14:11:42 CEST 2006
karl at freefriends.org (Karl Berry) wrote:
> > + if test $pkg = sam2p -a ! $srcdir/utils/sam2p -ef utils/sam2p; then
>
> '-a' is a "bashism" not required by POSIX, although most shells
>
> Indeed. And how about -ef? Is that really standard/widely supported?
> Would it be better to cd to the two directories and compare /bin/pwd
> output?
Oops, yes:
http://www.opengroup.org/onlinepubs/009695399/utilities/test.html
tells me that POSIX does not know about -ef. So that would be
if test $pkg = sam2p; then
dir1=$(cd $srcdir/utils/sam2p; pwd)
dir2=$(cd utils/sam2p; pwd)
if test "$dir1" != "$dir2"; then
# doing things
fi
fi
Regards, Frank
--
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
More information about the tex-live
mailing list