Commit fcd60c50 authored by Eugenio Cano-Manuel's avatar Eugenio Cano-Manuel

Include maven and leiningen metadata to jar file

parent 7310d56e
......@@ -6,6 +6,9 @@ export CLASSPATH=/usr/share/java/clojure.jar
MDWN_DOCS = $(patsubst %.md,%.html,$(wildcard $(CURDIR)/*.md))
PRODUCED_JAR=scout.jar
NAMESPACE=scout/scout
MAVEN_META=META-INF/maven/$(NAMESPACE)
LEIN_META=META-INF/leiningen/$(NAMESPACE)
%:
dh $@ --with javahelper,jh_maven_repo_helper
......@@ -13,11 +16,17 @@ PRODUCED_JAR=scout.jar
override_jh_build: $(MDWN_DOCS)
jar cf $(PRODUCED_JAR) -C src .
mkdir -p $(CURDIR)/doc/html && mv $(CURDIR)/*.html $(CURDIR)/doc/html
mkdir -p $(CURDIR)/meta/$(MAVEN_META)
mkdir -p $(CURDIR)/meta/$(LEIN_META)
cp $(CURDIR)/project.clj $(CURDIR)/meta/$(LEIN_META)
cp $(CURDIR)/debian/maven-meta/* $(CURDIR)/meta/$(MAVEN_META)
jar uf $(PRODUCED_JAR) -C meta/ META-INF
override_jh_clean:
jh_clean
rm -f $(CURDIR)/$(PRODUCED_JAR)
rm -rf $(CURDIR)/doc
rm -rf $(CURDIR)/meta
%.html:%.md
cat debian/header.html > $@
......
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