-
Notifications
You must be signed in to change notification settings - Fork 42
/
Makefile
90 lines (62 loc) · 2.56 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
### See http://central.sonatype.org/pages/apache-maven.html#performing-a-release-deployment-with-the-maven-release-plugin
### make dry
### make rel.clean release-oss-sign
### make release:perform
install-sign:
mvn clean install -P release
release-oss-sign:
mvn release:prepare
dry:
mvn release:prepare -DdryRun=true
rel.clean:
mvn release:clean
RELEASE_VERSION=ProvToolbox-0.7.3
release.doc:
rm -r -f target/$(RELEASE_VERSION)
mkdir -p target
cd target; git clone [email protected]:lucmoreau/ProvToolbox.git $(RELEASE_VERSION)
cd target/$(RELEASE_VERSION); git checkout tags/$(RELEASE_VERSION); mvn site-deploy
echo "rename scp://[email protected]:/home/openprovenance/openprovenance.org/htdocs/java/site/prov to version number"
cd target/$(RELEASE_VERSION); scp toolbox/target/provconvert-0.7.3.dmg [email protected]:/home/openprovenance/openprovenance.org/htdocs/java/installer
doc.test:
mvn -Prelease javadoc:javadoc
git.untag:
@echo "git tag -d ProvToolbox-2.0.0"
@echo "git push --delete origin ProvToolbox-2.0.0"
@echo "mvn release:rollback"
yum:
sudo yum install -y toolbox/target/rpm/provconvert/RPMS/noarch/provconvert-*.noarch.rpm
PROVCONVERT=toolbox/target/appassembler/bin/provconvert
SRC_PROVNS=$(wildcard prov-n/target/*.provn)
PROVNS=$(basename $(notdir $(SRC_PROVNS)))
TEST_DIRS=$(addprefix target/testcases/test-, $(PROVNS))
TEST_PROVNS=$(addsuffix .provn, $(join $(addsuffix /, $(TEST_DIRS)) , $(PROVNS)))
TEST_JSONS=$(addsuffix .json, $(join $(addsuffix /, $(TEST_DIRS)) , $(PROVNS)))
TEST_TTLS=$(addsuffix .ttl, $(join $(addsuffix /, $(TEST_DIRS)) , $(PROVNS)))
TEST_TRIGS=$(addsuffix .trig, $(join $(addsuffix /, $(TEST_DIRS)) , $(PROVNS)))
TEST_PROVXS=$(addsuffix .provx, $(join $(addsuffix /, $(TEST_DIRS)) , $(PROVNS)))
.provn.json:
provconvert -infile $< -outfile $<.json
$(TEST_JSONS): %.json: %.provn
-$(PROVCONVERT) -infile $< -outfile $@
$(TEST_TTLS): %.ttl: %.provn
-$(PROVCONVERT) -infile $< -outfile $@
$(TEST_TRIGS): %.trig: %.provn
-$(PROVCONVERT) -infile $< -outfile $@
$(TEST_PROVXS): %.provx: %.provn
-$(PROVCONVERT) -infile $< -outfile $@
$(TEST_PROVNS):
cp prov-n/target/$(notdir $@) $@
testcases:
rm -r -f target/testcases
mkdir -p target/testcases
mkdir $(TEST_DIRS)
$(MAKE) testcases.files.json
$(MAKE) testcases.files.ttl
$(MAKE) testcases.files.trig
$(MAKE) testcases.files.provx
tar zcvf target/ssi-testcases.tar.gz target/testcases
testcases.files.json: $(TEST_JSONS)
testcases.files.ttl: $(TEST_TTLS)
testcases.files.trig: $(TEST_TRIGS)
testcases.files.provx: $(TEST_PROVXS)