From 19bf51d806348ed406d15c594a4c0821fe82593f Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 30 Mar 2007 21:53:09 +0000 Subject: fixed strict sh compatibility issues svn path=/trunk/externals/miXed/; revision=7525 --- Makefile.common | 4 ++-- toxy/Makefile | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile.common b/Makefile.common index bdc4d71..be418ef 100644 --- a/Makefile.common +++ b/Makefile.common @@ -224,8 +224,8 @@ SUBDIRS_DEFAULT = @for i in $(MIXED_DIRS) and_in_case_it_is_null ; \ cd $$i; $(MAKE) ; fi ) ; done define_build: - @if [[ -f build_counter && `id -un` == krzYszcz && \ - `date -r build_counter +%j` != `date +%j` ]] ; then \ + @if [ -f build_counter ] && [ `id -un` = krzYszcz ] && \ + [ `date -r build_counter +%j` != `date +%j` ] ; then \ mv build_counter build_counter~ ; \ echo -n 'increment build counter (y/n)? [n]' ; read doit ; \ if [ $$doit ] && [ $$doit == 'y' ] ; then \ diff --git a/toxy/Makefile b/toxy/Makefile index cd9cd5a..5527532 100644 --- a/toxy/Makefile +++ b/toxy/Makefile @@ -9,8 +9,7 @@ checkwiq: $(WIQFILE): $(WIDPATH) @echo transferring widget definitions from \"$<\" to \"$@\" # LATER think how to replace puts with pdtk_post - @echo -e '// Do not edit this file (edit "$<", and run "make").\ -\n//\nputs stderr [concat loading built-in widget definitions]' \ + @echo '// Do not edit this file (edit "$<", and run "make").\n//\nputs stderr [concat loading built-in widget definitions]' \ | cat - $< | sed \ -e '1,\|//$$|{p;d;}' \ -e 's/\([\\\"]\)/\\\1/g' \ -- cgit v1.2.1