use cp -L for terminfo

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@318 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Joshua Kwan 2004-06-20 08:32:06 +00:00
parent 554430ba81
commit 366737941c
2 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,9 @@
* Fix some signed/unsigned warnings. * Fix some signed/unsigned warnings.
* Fix make install check for PREFIX -> $(PREFIX). * Fix make install check for PREFIX -> $(PREFIX).
* Bind with Satan / start using autoconf. * Bind with Satan / start using autoconf.
* Fix dgl-create-chroot's copying of terminfo - the terminfo dir
might be full of symlinks, so dereference them by passing -L to
cp. It's SUSv3, honest!
1.4.5 (2004/06/14) 1.4.5 (2004/06/14)
* Reset offset if necessary to show at least one game to avoid things * Reset offset if necessary to show at least one game to avoid things

View File

@ -122,7 +122,8 @@ fi
if [ -n "$termdata" ]; then if [ -n "$termdata" ]; then
mkdir -p $chroot_path`dirname $termdata` mkdir -p $chroot_path`dirname $termdata`
if [ -d $termdata/. ]; then if [ -d $termdata/. ]; then
cp -R $termdata/. $chroot_path$termdata # $termdata might be full of symlinks, like Debian is
cp -L -R $termdata/. $chroot_path$termdata
else else
cp $termdata $chroot_path`dirname $termdata` cp $termdata $chroot_path`dirname $termdata`
fi fi