summaryrefslogtreecommitdiff
path: root/ld/genscripts.sh
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2004-10-21 15:20:35 +0000
committerH.J. Lu <hjl@lucon.org>2004-10-21 15:20:35 +0000
commitf046f117e0e212d40ec52b990e0691bafe884bdb (patch)
tree12937ce78fb7536cef792cf916e507790f710eff /ld/genscripts.sh
parent866ccb7bf45afbfce7299c84520b966358718969 (diff)
downloadbinutils-redhat-f046f117e0e212d40ec52b990e0691bafe884bdb.tar.gz
2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
* genscripts.sh (libpath.exp): Really generate for first emulation only.
Diffstat (limited to 'ld/genscripts.sh')
-rwxr-xr-xld/genscripts.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/ld/genscripts.sh b/ld/genscripts.sh
index 7f8db332ee..76d5dd2560 100755
--- a/ld/genscripts.sh
+++ b/ld/genscripts.sh
@@ -191,13 +191,12 @@ fi
LIB_SEARCH_DIRS=`echo ${LIB_PATH} | sed -e 's/:/ /g' -e 's/\([^ ][^ ]*\)/SEARCH_DIR(\\"\1\\");/g'`
# We need it for testsuite.
-case " $EMULATION_LIBPATH " in
- *" ${EMULATION_NAME} "*)
+set $EMULATION_LIBPATH
+if [ "x$1" = "x$EMULATION_NAME" ]; then
test -d tmpdir || mkdir tmpdir
- test -f tmpdir/libpath.exp || \
+ rm -f tmpdir/libpath.exp
echo "set libpath \"${LIB_PATH}\"" | sed -e 's/:/ /g' > tmpdir/libpath.exp
- ;;
-esac
+fi
# Generate 5 or 6 script files from a master script template in
# ${srcdir}/scripttempl/${SCRIPT_NAME}.sh. Which one of the 5 or 6