aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.common4
-rw-r--r--toxy/Makefile3
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' \