.sh wrappers
David Faure
faure at kde.org
Sun Apr 30 13:32:31 CEST 2006
$ cat bin/genembed.sh
#!/bin/sh
# created by cmake, don't edit, changes will be lost
LD_LIBRARY_PATH=/devel/kde/build/4/kdelibs4_snapshot/lib/./:/devel/kde/inst/kde4/lib:/devel/kde/build/4/kdelibs4_snapshot/lib/.:/devel/kde/src/4/qt-copy/lib${LD_LIBRARY_PATH+:LD_LIBRARY_PATH} "/devel/kde/build/4/kdelibs4_snapshot/bin/genembed" "$@"
Are you sure about the ${LD_LIBRARY_PATH+:LD_LIBRARY_PATH} construct?
sh -x says:
+ LD_LIBRARY_PATH=/devel/kde/build/4/kdelibs4_snapshot/lib/./:/devel/kde/inst/kde4/lib:/devel/kde/build/4/kdelibs4_snapshot/lib/.:/devel/kde/src/4/qt-copy/lib:LD_LIBRARY_PATH
and indeed
$ echo ${LD_LIBRARY_PATH+:LD_LIBRARY_PATH}
:LD_LIBRARY_PATH
Shouldn't this be ${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH} ? (with a $ in front of the var?)
bash and zsh (and sh symlinked to bash) seem to agree on this.
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the Kde-buildsystem
mailing list