Commit fa76c251 authored by POGODALLA Sylvain's avatar POGODALLA Sylvain
Browse files

Fix web publishing

parent 450de31e
......@@ -48,16 +48,12 @@ tar:
www:
cp acg-$(VERSION).tar.gz ~/www-acg/software/.
scp acg-$(VERSION).tar.gz pogodall@loria.loria.fr:www-acg/software/.
scp acg-$(VERSION).tar.gz pogodall@loria.loria.fr:www-calligramme-acg/software/.
scp INSTALL pogodall@loria.loria.fr:www-acg/software/.
scp INSTALL pogodall@loria.loria.fr:www-calligramme-acg/software/.
scp README pogodall@loria.loria.fr:www-acg/software/.
scp README pogodall@loria.loria.fr:www-calligramme-acg/software/.
cp INSTALL ~/www-acg/software/.
cp README ~/www-acg/software/.
sed -i -e 's/acg-[^-]*-[0-9]*\.tar\.gz/acg-$(VERSION).tar.gz/' ~/www-acg/index.html
scp ~/www-acg/index.html pogodall@loria.loria.fr:www-acg/.
scp ~/www-acg/index.html pogodall@loria.loria.fr:www-calligramme-acg/.
version:src/utils/version.ml acgtkLib.version
......@@ -72,17 +68,17 @@ FORCE:
OPAM_TESTING_DIR=~/work/dev/opam-contrib/testing/packages
OPAM_GIT_REPO_DIR=~/work/dev/opam-contrib/opam-repository/packages
OPAM_ACG_REPO_DIR=~/www-acg/opam
OPAM_CALLIGRAMME_ACG_REPO_DIR=~/www-calligramme-acg/software/opam-acg
OPAM_OLD_ACG_REPO_DIR=~/www-acg/software/opam-acg
acgtk.url: tar acg-$(VERSION).tar.gz
md5sum acg-$(VERSION).tar.gz | cut -d " " -f 1 | xargs -I{} printf 'url {\n src: "http://acg.loria.fr/software/acg-$(VERSION).tar.gz"\n checksum: "md5=%s"\n}\n' {} | cat acgtk.opam - > $@
opam lint $@
test-www-acg: opam-admin
cd $(OPAM_ACG_REPO_DIR) && opam admin make && echo "Going to rsync with loria.loria.fr:$(OPAM_ACG_REPO_DIR)" && rsync -vaz --rsh="ssh -l pogodall" ./ pogodall@loria.loria.fr:$(OPAM_ACG_REPO_DIR) && echo "Going to rsync with loria.loria.fr:$(OPAM_CALLIGRAMME_ACG_REPO_DIR)" && rsync -vaz --rsh="ssh -l pogodall" ./ pogodall@loria.loria.fr:$(OPAM_CALLIGRAMME_ACG_REPO_DIR)
cd $(OPAM_ACG_REPO_DIR) && opam admin make && echo "Going to rsync with loria.loria.fr:$(OPAM_ACG_REPO_DIR)" && rsync -vaz --rsh="ssh -l pogodall" ./ pogodall@loria.loria.fr:$(OPAM_ACG_REPO_DIR) && echo "Going to rsync with loria.loria.fr:$(OPAM_OLD_ACG_REPO_DIR)" && rsync -vaz --rsh="ssh -l pogodall" ./ pogodall@loria.loria.fr:$(OPAM_OLD_ACG_REPO_DIR)
sync: opam-admin
cd $(OPAM_ACG_REPO_DIR) && echo "Going to rsync with loria.loria.fr:$(OPAM_ACG_REPO_DIR)" && rsync -vaz --rsh="ssh -l pogodall" ./ pogodall@loria.loria.fr:$(OPAM_ACG_REPO_DIR) && echo "Going to rsync with loria.loria.fr:$(OPAM_CALLIGRAMME_ACG_REPO_DIR)" && rsync -vaz --rsh="ssh -l pogodall" ./ pogodall@loria.loria.fr:$(OPAM_CALLIGRAMME_ACG_REPO_DIR)
cd $(OPAM_ACG_REPO_DIR) && echo "Going to rsync with loria.loria.fr:$(OPAM_ACG_REPO_DIR)" && rsync -vaz --rsh="ssh -l pogodall" ./ pogodall@loria.loria.fr:$(OPAM_ACG_REPO_DIR) && echo "Going to rsync with loria.loria.fr:$(OPAM_OLD_ACG_REPO_DIR)" && rsync -vaz --rsh="ssh -l pogodall" ./ pogodall@loria.loria.fr:$(OPAM_OLD_ACG_REPO_DIR)
opam-admin:
cd $(OPAM_ACG_REPO_DIR) && opam admin make
......
Markdown is supported
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