Commit d90fc9d4 authored by erwan's avatar erwan
Browse files

Build: now use a custum bash script to build opam packages

parent eb7d533d
Pipeline #18250 passed with stages
in 3 minutes and 26 seconds
......@@ -72,52 +72,12 @@ tags:
# opam-ing
NAME=lutils
PACKNAME=$(NAME).$(VERSION)
WWW=/import/www/DIST-TOOLS/SYNCHRONE
HTTP=http://www-verimag.imag.fr/DIST-TOOLS/SYNCHRONE
# for testing opam packages before publishing
WWWTEST=/import/www/DIST-TOOLS/SYNCHRONE/test
HTTPTEST=http://www-verimag.imag.fr/DIST-TOOLS/SYNCHRONE/test
OPAM_DIR=$(shell dirname $(OPAM_FILE))
OFFICIAL_OPAM_DIR=/home/jahier/local/opam-repository/packages/lutils
pack:
echo $(PACKNAME).tgz
.PHONY:$(PACKNAME).tgz
$(PACKNAME).tgz:
git archive --prefix=$(PACKNAME)/ -o $(PACKNAME).tgz HEAD
$(WWW)/pool/$(PACKNAME).tgz: $(PACKNAME).tgz
cp $^ $@
$(WWWTEST)/pool/$(PACKNAME).tgz: $(PACKNAME).tgz
cp $^ $@
opam : $(WWW)/pool/$(PACKNAME).tgz
cd $(WWW)/opam-repository/packages && \
oasis2opam $(HTTP)/pool/$(PACKNAME).tgz && \
cd lutils && NEW_DIR=$(shell ls -c $(WWW)/opam-repository/packages/lutils/ | head -1) && \
mv $$NEW_DIR $(PACKNAME) && cd .. && \
cp lutils/$(PACKNAME)/opam $(PWD)/opam.oasis2opam && \
cd .. && opam-admin check && opam-admin make -g && \
cp -rf $(OPAM_DIR) $(OFFICIAL_OPAM_DIR)
# ZZZ il ne faut pas qu'il y ait num dans les "depends", et oasis2opam le met !!
# Mais parfois, oasis2opam rajoute des trucs utiles, donc il faut faire attention
opam-test : $(WWWTEST)/pool/$(PACKNAME).tgz
cd $(WWWTEST)/opam-repository/packages && \
oasis2opam $(HTTPTEST)/pool/$(PACKNAME).tgz && \
cd lutils && NEW_DIR=$(shell ls -c $(WWWTEST)/opam-repository/packages/lutils/ | head -1) && \
mv $$NEW_DIR $(PACKNAME) && cd .. && \
cp lutils/$(PACKNAME)/opam $(PWD)/opam.oasis2opam && \
diff -u $(PWD)/opam.oasis2opam $(PWD)/opam | \
grep -v opam.oasis2opam > $(PWD)/opam.diff &&\
(diff $(PWD)/opam.diff $(PWD)/opam.diff.exp && \
cp -f $(PWD)/opam lutils/$(PACKNAME)/opam || \
(echo "The opam file needs some update" && exit 2)) && \
cd $(WWWTEST)/opam-repository/ && pwd && opam-admin check && opam-admin make -g
opam :
./sh/make-opam-pack $(NAME)
opam-test :
./sh/make-opam-pack $(NAME) -test
opam-pr:
cp $(OPAM_DIR) /home/jahier/local/opam-repository/packages/
......
OASISFormat: 0.4
Name: lutils
Version: 1.48.2
Version: 1.48.3
Authors: Erwan Jahier
Maintainers: erwan.jahier@imag.fr
License: CeCILL
......
\newcommand{\version}{1.48.2}
\newcommand{\sha}{0f739b5}
\newcommand{\version}{1.48.3}
\newcommand{\sha}{eb7d533}
\newcommand{\versionname}{none}
\newcommand{\versiondate}{25-01-19}
\newcommand{\versiondate}{28-01-19}
(* setup.ml generated for the first time by OASIS v0.4.10 *)
(* OASIS_START *)
(* DO NOT EDIT (digest: 723e40f406bda477fb3ae714212e9086) *)
(* DO NOT EDIT (digest: a273561991be9b0a3f5197fe0e9a47cd) *)
(*
Regenerated by OASIS v0.4.11
Visit http://oasis.forge.ocamlcore.org for more information and
......@@ -6871,7 +6871,7 @@ let setup_t =
{
oasis_version = "0.4";
ocaml_version = Some (OASISVersion.VGreaterEqual "4.02");
version = "1.48.2";
version = "1.48.3";
license =
OASISLicense.DEP5License
(OASISLicense.DEP5Unit
......@@ -7272,7 +7272,8 @@ let setup_t =
};
oasis_fn = Some "_oasis";
oasis_version = "0.4.11";
oasis_digest = Some "?\199\212\n\175\130\193\240\194\131\176#8\155b\132";
oasis_digest =
Some "{\003l\172~\174\219\144\021y\016\205\194\231\221\241";
oasis_exec = None;
oasis_setup_args = [];
setup_update = false
......@@ -7280,7 +7281,7 @@ let setup_t =
let setup () = BaseSetup.setup setup_t;;
# 7284 "setup.ml"
# 7285 "setup.ml"
let setup_t = BaseCompat.Compat_0_4.adapt_setup_t setup_t
open BaseCompat.Compat_0_4
(* OASIS_STOP *)
......
# OASIS_START
# DO NOT EDIT (digest: 96e9f7d81a57fed72d7dac8690db68c0)
version = "1.48.2"
# DO NOT EDIT (digest: 36690dbd94409c4b61df693fcd372b11)
version = "1.48.3"
description = "shared by Verimag/synchronous tools (lustre, lutin, rdbg)."
requires = "unix str camlp4 num"
archive(byte) = "lutils.cma"
......
let str="1.48.2"
let sha="0f739b5"
let str="1.48.3"
let sha="eb7d533"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment