From 0711c8ccb13187aa56de91a47c706a266b177a9f Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Thu, 11 Aug 2005 11:29:01 +0000 Subject: split-for-gcj.sh: Don't use unportable %{parameter%word}. * lib/split-for-gcj.sh: Don't use unportable %{parameter%word}. Don't use unportable !. From-SVN: r102986 --- libjava/classpath/ChangeLog.gcj | 5 +++++ libjava/classpath/lib/split-for-gcj.sh | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'libjava/classpath') diff --git a/libjava/classpath/ChangeLog.gcj b/libjava/classpath/ChangeLog.gcj index 9fde62e..b4de2bc 100644 --- a/libjava/classpath/ChangeLog.gcj +++ b/libjava/classpath/ChangeLog.gcj @@ -1,3 +1,8 @@ +2005-08-11 Rainer Orth + + * lib/split-for-gcj.sh: Don't use unportable %{parameter%word}. + Don't use unportable !. + 2005-07-15 Tom Tromey * ChangeLog.gcj, Makefile.in, aclocal.m4, config.guess, diff --git a/libjava/classpath/lib/split-for-gcj.sh b/libjava/classpath/lib/split-for-gcj.sh index bda7fda..477e0a8 100755 --- a/libjava/classpath/lib/split-for-gcj.sh +++ b/libjava/classpath/lib/split-for-gcj.sh @@ -11,7 +11,7 @@ for dir in java javax gnu org; do list=lists/`echo $pkg | sed -e 's,/,-,g'` echo "$file" >> ${list}.list.1 f2=`echo "$file" | sed -n -e "s,^.*/\($dir/.*\)$,\1,p"` - f2=${f2%.java}.class + f2=`echo "$f2" | sed -e 's/.java$//'`.class echo "$f2: ${list}.stamp" >> Makefile.deps echo "${list}.list: $file" >> Makefile.deps done @@ -19,10 +19,10 @@ done # Only update a .list file if it changed. for file in lists/*.list.1; do - real=${file%.1} - if ! cmp -s $real $file; then - mv $file $real - else + real=`echo "$file" | sed -e 's/.1$//'` + if cmp -s $real $file; then rm $file + else + mv $file $real fi done -- cgit v1.1