From 3c767fca720f26abfc5622e99757fcce87b043e1 Mon Sep 17 00:00:00 2001 From: notin Date: Thu, 22 Jan 2009 13:23:28 +0000 Subject: Remplacement de cp --parents par un script sh git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@11833 85f007b7-540e-0410-9357-904b9bb8a0f7 --- Makefile.build | 6 +++--- Makefile.common | 1 + install.sh | 13 +++++++++++++ 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100755 install.sh diff --git a/Makefile.build b/Makefile.build index 95f6b075c..c92cd29ad 100644 --- a/Makefile.build +++ b/Makefile.build @@ -673,11 +673,11 @@ install-library: $(INSTALLLIB) states/*.coq $(FULLCOQLIB)/states $(MKDIR) $(FULLCOQLIB)/user-contrib $(INSTALLLIB) $(DLLCOQRUN) $(FULLCOQLIB) - cp --parents $(CONFIG) $(LINKCMO) $(GRAMMARCMA) $(FULLCOQLIB) - cp --parents $(OBJSCMO:.cmo=.cmi) $(FULLCOQLIB) + $(INSTALLSH) $(FULLCOQLIB) $(CONFIG) $(LINKCMO) $(GRAMMARCMA) + $(INSTALLSH) $(FULLCOQLIB) $(OBJSCMO:.cmo=.cmi) ifeq ($(BEST),opt) $(INSTALLLIB) $(LIBCOQRUN) $(FULLCOQLIB) - cp --parents $(CONFIG:.cmo=.cmx) $(CONFIG:.cmo=.o) $(LINKCMO:.cma=.cmxa) $(LINKCMO:.cma=.a) $(FULLCOQLIB) + $(INSTALLSH) $(FULLCOQLIB) $(CONFIG:.cmo=.cmx) $(CONFIG:.cmo=.o) $(LINKCMO:.cma=.cmxa) $(LINKCMO:.cma=.a) endif # csdpcert is not meant to be directly called by the user; we install # it with libraries diff --git a/Makefile.common b/Makefile.common index efc3bb7ef..8f6e1b808 100644 --- a/Makefile.common +++ b/Makefile.common @@ -37,6 +37,7 @@ endif INSTALLBIN:=install INSTALLLIB:=install -m 644 +INSTALLSH:=./install.sh MKDIR:=install -d COQIDEBYTE:=bin/coqide.byte$(EXE) diff --git a/install.sh b/install.sh new file mode 100755 index 000000000..0719ca778 --- /dev/null +++ b/install.sh @@ -0,0 +1,13 @@ +#! /bin/sh + +dest=$1 +shift + +for f; do + bn=`basename $f` + dn=`dirname $f` + install -d $dest/$dn + install -m 644 $f $dest/$dn/$bn +done + + -- cgit v1.2.3