From c8c7fea525dc2f3158365a873d840b54c3f21782 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 6 Oct 1994 23:59:01 +0000 Subject: [PATCH] Replace use of basename with sed --- it's more portable git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4463 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/et/ChangeLog | 4 ++++ src/util/et/compile_et.sh | 2 +- src/util/ss/ChangeLog | 4 ++++ src/util/ss/mk_cmds.sh | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/util/et/ChangeLog b/src/util/et/ChangeLog index 7d81cdf91..a1b383dc9 100644 --- a/src/util/et/ChangeLog +++ b/src/util/et/ChangeLog @@ -1,3 +1,7 @@ +Thu Oct 6 19:39:11 1994 Theodore Y. Ts'o (tytso@dcl) + + * compile_et.sh: Replace basename with sed -- more portable. + Mon Oct 3 17:27:28 1994 Theodore Y. Ts'o (tytso@dcl) * Makefile.in: diff --git a/src/util/et/compile_et.sh b/src/util/et/compile_et.sh index fdd249e83..2b17bffcf 100644 --- a/src/util/et/compile_et.sh +++ b/src/util/et/compile_et.sh @@ -5,7 +5,7 @@ AWK=@AWK@ DIR=@DIR@ ROOT=`echo $1 | sed -e s/.et$//` -BASE=`basename $ROOT` +BASE=`echo $ROOT | sed -e 's;.*/;;'` $AWK -f ${DIR}/et_h.awk outfile=${BASE}.h $ROOT.et $AWK -f ${DIR}/et_c.awk outfile=${BASE}.c $ROOT.et diff --git a/src/util/ss/ChangeLog b/src/util/ss/ChangeLog index 0e8edd1ab..e832ab11c 100644 --- a/src/util/ss/ChangeLog +++ b/src/util/ss/ChangeLog @@ -1,3 +1,7 @@ +Thu Oct 6 19:40:09 1994 Theodore Y. Ts'o (tytso@dcl) + + * mk_cmds.sh -- replace basename with sed -- more portable + Mon Oct 3 17:26:27 1994 Theodore Y. Ts'o (tytso@dcl) * Makefile.in: diff --git a/src/util/ss/mk_cmds.sh b/src/util/ss/mk_cmds.sh index eda3888a1..d41ab9041 100644 --- a/src/util/ss/mk_cmds.sh +++ b/src/util/ss/mk_cmds.sh @@ -8,7 +8,7 @@ SED=@SED@ FILE=$1 ROOT=`echo $1 | sed -e s/.ct$//` -BASE=`basename $ROOT` +BASE=`echo $ROOT | sed -e 's;.*/;;'` TMP=ct$$.c ${SED} -f ${DIR}/ct_c.sed ${FILE} \ -- 2.26.2