From 0cf541452e6bb56ddddfae6bd9c1e08fbd47a687 Mon Sep 17 00:00:00 2001 From: herbelin Date: Wed, 8 Apr 2009 15:50:39 +0000 Subject: Backport of Eric Le Lay's patch (bug report #2078) from v8.2 branch (r12063) for smooth compilation/installation under Solaris (/bin/sh -> /bin/bash, -or -> -o in find, echo -n -> printf, ! in test rather than in if). git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12065 85f007b7-540e-0410-9357-904b9bb8a0f7 --- Makefile | 32 ++++++++++++++++---------------- Makefile.build | 6 +++--- Makefile.stage1 | 1 + build | 2 +- configure | 4 ++-- install.sh | 2 +- 6 files changed, 24 insertions(+), 23 deletions(-) diff --git a/Makefile b/Makefile index 7eb478522..609e4b76e 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ ####################################################################### # v # The Coq Proof Assistant / The Coq Development Team # -# $@ + echo "#!/bin/bash" > $@ echo 'exec '$(BINDIR)'/coqtop -require CoqInterface' >> $@ chmod +x $@ bin/coq-parser$(EXE): - echo "#!/bin/sh" > $@ + echo "#!/bin/bash" > $@ echo 'exec '$(BINDIR)'/coqtop -batch -l CoqParser' >> $@ chmod +x $@ @@ -889,7 +889,7 @@ else endif %.ml4.d: $(D_DEPEND_BEFORE_SRC) %.ml4 $(SHOW)'CAMLP4DEPS $<' - $(HIDE)( /bin/echo -n '$*.cmo $*.cmx $*.ml4.ml.d $*.ml4-preprocessed: $(SEP)' && $(CAMLP4DEPS) "$<" ) > "$@" \ + $(HIDE)( printf "%s" '$*.cmo $*.cmx $*.ml4.ml.d $*.ml4-preprocessed: $(SEP)' && $(CAMLP4DEPS) "$<" ) > "$@" \ || ( RV=$$?; rm -f "$@"; exit $${RV} ) %.ml4.ml.d: $(D_DEPEND_BEFORE_SRC) %.ml4 $(D_DEPEND_AFTER_SRC) $(GENFILES) $(ML4FILESML) %.ml4.d diff --git a/Makefile.stage1 b/Makefile.stage1 index a60d388fc..c39a6372e 100644 --- a/Makefile.stage1 +++ b/Makefile.stage1 @@ -6,6 +6,7 @@ # # GNU Lesser General Public License Version 2.1 # ####################################################################### +export SHELL:=/bin/bash include Makefile.build # All includes must be declared secondary, otherwise make will delete diff --git a/build b/build index 26237b705..6edc6b0f4 100755 --- a/build +++ b/build @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash FLAGS= OCAMLBUILD=ocamlbuild diff --git a/configure b/configure index 88bb0fe52..7476485fd 100755 --- a/configure +++ b/configure @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash ################################## # @@ -293,7 +293,7 @@ case $arch_spec in ARCH=`/usr/bin/uname -s` else echo "I can not automatically find the name of your architecture" - echo -n\ + printf "%s"\ "Give me a name, please [win32 for Win95, Win98 or WinNT]: " read ARCH fi diff --git a/install.sh b/install.sh index 277222f58..c2f8215b0 100755 --- a/install.sh +++ b/install.sh @@ -1,4 +1,4 @@ -#! /bin/sh +#! /bin/bash dest="$1" shift -- cgit v1.2.3