aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid D. Zuhn <zoo@cygnus>1993-06-21 19:38:14 +0000
committerDavid D. Zuhn <zoo@cygnus>1993-06-21 19:38:14 +0000
commitaf8647132a7a9adcbf6466dc97c04df414789d11 (patch)
treebfe0f36a2d36009546fa91d208b4fe38f07740ed
parent9b4be067af42db0c325a8a37c1202b64eb9e892f (diff)
downloadgdb-af8647132a7a9adcbf6466dc97c04df414789d11.zip
gdb-af8647132a7a9adcbf6466dc97c04df414789d11.tar.gz
gdb-af8647132a7a9adcbf6466dc97c04df414789d11.tar.bz2
don't use dirname
-rw-r--r--ChangeLog4
-rwxr-xr-xinstall.sh3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 567afec..495732a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Jun 18 12:03:10 1993 david d `zoo' zuhn (zoo at majipoor.cygnus.com)
+
+ * install.sh: don't use dirname anymore (replaced with sed usage)
+
Thu Jun 17 18:43:42 1993 Fred Fish (fnf@cygnus.com)
* Makefile.in: Change extension for gzip'd files from '.z' to
diff --git a/install.sh b/install.sh
index 710497a..649b960 100755
--- a/install.sh
+++ b/install.sh
@@ -114,7 +114,8 @@ fi
# Make a temp file name in the proper directory.
-dstdir=`dirname $dst`
+## this sed command emulates the dirname command
+dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
dsttmp=$dstdir/#inst.$$#
# Make sure that the destination directory exists.