Bugs item #1690125, was opened at 2007-03-28 15:52 Message generated for change (Comment added) made by eighthave You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478070&aid=1690125...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: externals Group: v0.39.2
Status: Closed Resolution: Fixed
Priority: 5 Private: No Submitted By: Hans-Christoph Steiner (eighthave) Assigned to: Krzysztof Czaja (krzyszcz) Summary: define_build target has invalid bourne shell syntax
Initial Comment:
In miXed/Makefile.common, in the target define_build, there is some syntax that does not work in a strict bourne shell. It's basically the '[[' syntax that bash uses which is invalid:
@if [[ -f build_counter && `id -un` == krzYszcz && \ `date -r build_counter +%j` != `date +%j` ]] ; then \
----------------------------------------------------------------------
Comment By: Hans-Christoph Steiner (eighthave)
Date: 2007-04-19 22:42
Message: Logged In: YES user_id=27104 Originator: YES
AFter banging my head against it a few times, it looks like I managed to fix it in a way that isn't completely ugly.
----------------------------------------------------------------------
Comment By: Hans-Christoph Steiner (eighthave) Date: 2007-03-28 18:24
Message: Logged In: YES user_id=27104 Originator: YES
I replaced it with this and it works with strict sh and bash:
@if [ -f build_counter ] && [ `id -un` = krzYszcz ] && \ [ `date -r build_counter +%j` != `date +%j` ] ; then \
But now there is a problem in externals/miXed/toxy/Makefile with this line, also not strict sh compatible:
@echo -e '// 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' \ -e 's/^.*$$/"&\n"/' > $@
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478070&aid=1690125...