aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar notin <notin@85f007b7-540e-0410-9357-904b9bb8a0f7>2009-01-22 13:23:28 +0000
committerGravatar notin <notin@85f007b7-540e-0410-9357-904b9bb8a0f7>2009-01-22 13:23:28 +0000
commit3c767fca720f26abfc5622e99757fcce87b043e1 (patch)
treed608055ccc2f11e70795a27df5a55cfe6a90d8a9
parent25e3c83e7ebcb2832c44bc894b19fee2741d069a (diff)
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
-rw-r--r--Makefile.build6
-rw-r--r--Makefile.common1
-rwxr-xr-xinstall.sh13
3 files changed, 17 insertions, 3 deletions
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
+
+