diff options
author | Tom Tromey <tromey@redhat.com> | 2005-08-10 22:39:37 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2005-08-10 22:39:37 +0000 |
commit | c2aba2579b7c08d1ed49ac4341ea87d8461e9759 (patch) | |
tree | ed925ba95ff44f415365ecf9ceb15e79bedd1e05 /lib | |
parent | 0c67bcf8bb90f9867b4458b0f2cc5b7abee5e0a5 (diff) | |
download | classpath-c2aba2579b7c08d1ed49ac4341ea87d8461e9759.tar.gz |
2005-08-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* lib/split-for-gcj.sh: Don't use unportable %{parameter%word}.
Don't use unportable !.
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/split-for-gcj.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/split-for-gcj.sh b/lib/split-for-gcj.sh index e282a9336..caba4d12a 100755 --- a/lib/split-for-gcj.sh +++ b/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 |