-
Notifications
You must be signed in to change notification settings - Fork 6
/
jamal.sh
executable file
·139 lines (133 loc) · 7.21 KB
/
jamal.sh
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#!/bin/sh
CLASSPATH=""
download() {
DIR=${1//\.//}
if ! test -f $HOME/.m2/repository/$DIR/$2/$3/$2-$3.jar; then
echo "downloading https://repo1.maven.org/maven2/$DIR/$2/$3/jamal-$2-$3.jar"
mkdir -p $HOME/.m2/repository/$DIR/$2/$3
if command -v wget &>/dev/null; then
wget --no-check-certificate https://repo1.maven.org/maven2/$DIR/$2/$3/$2-$3.jar -O $HOME/.m2/repository/$DIR/$2/$3/$2-$3.jar
else
if command -v curl &>/dev/null; then
curl https://repo1.maven.org/maven2/$DIR/$2/$3/jamal-$2-$3.jar -o $HOME/.m2/repository/$DIR/$2/$3/$2-$3.jar
else
echo "There is no curl nor wget available"
exit 255
fi
fi
fi
CLASSPATH=$CLASSPATH:$HOME/.m2/repository/$DIR/$2/$3/$2-$3.jar
}
download "com/javax0/jamal" "jamal-cmd" "2.8.2-SNAPSHOT"
download "com.javax0.jamal" "jamal-engine" "2.8.2-SNAPSHOT"
download "com.javax0" "levenshtein" "1.0.0"
download "com.javax0.jamal" "jamal-api" "2.8.2-SNAPSHOT"
download "com.javax0.jamal" "jamal-tools" "2.8.2-SNAPSHOT"
download "com.javax0.jamal" "jamal-core" "2.8.2-SNAPSHOT"
download "com.javax0.jamal" "jamal-assertions" "2.8.2-SNAPSHOT"
download "com.javax0.jamal" "jamal-jamal" "2.8.2-SNAPSHOT"
download "com.javax0.jamal" "jamal-markdown" "2.8.2-SNAPSHOT"
download "com.vladsch.flexmark" "flexmark-all" "0.64.8"
download "com.vladsch.flexmark" "flexmark" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-abbreviation" "0.64.8"
download "com.vladsch.flexmark" "flexmark-util" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-admonition" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-anchorlink" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-aside" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-attributes" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-autolink" "0.64.8"
download "org.nibor.autolink" "autolink" "0.6.0"
download "com.vladsch.flexmark" "flexmark-ext-definition" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-emoji" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-enumerated-reference" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-escaped-character" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-footnotes" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-gfm-issues" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-gfm-strikethrough" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-gfm-tasklist" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-gfm-users" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-gitlab" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-jekyll-front-matter" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-jekyll-tag" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-media-tags" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-resizable-image" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-macros" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-ins" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-xwiki-macros" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-superscript" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-tables" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-toc" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-typographic" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-wikilink" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-yaml-front-matter" "0.64.8"
download "com.vladsch.flexmark" "flexmark-ext-youtube-embedded" "0.64.8"
download "com.vladsch.flexmark" "flexmark-html2md-converter" "0.64.8"
download "org.jsoup" "jsoup" "1.15.4"
download "com.vladsch.flexmark" "flexmark-jira-converter" "0.64.8"
download "com.vladsch.flexmark" "flexmark-pdf-converter" "0.64.8"
download "com.ibm.icu" "icu4j" "72.1"
download "com.openhtmltopdf" "openhtmltopdf-core" "1.0.10"
download "com.openhtmltopdf" "openhtmltopdf-pdfbox" "1.0.10"
download "org.apache.pdfbox" "pdfbox" "2.0.24"
download "org.apache.pdfbox" "fontbox" "2.0.24"
download "commons-logging" "commons-logging" "1.2"
download "org.apache.pdfbox" "xmpbox" "2.0.24"
download "de.rototor.pdfbox" "graphics2d" "0.32"
download "com.openhtmltopdf" "openhtmltopdf-rtl-support" "1.0.10"
download "com.vladsch.flexmark" "flexmark-profile-pegdown" "0.64.8"
download "com.vladsch.flexmark" "flexmark-util-ast" "0.64.8"
download "org.jetbrains" "annotations" "24.0.1"
download "com.vladsch.flexmark" "flexmark-util-builder" "0.64.8"
download "com.vladsch.flexmark" "flexmark-util-collection" "0.64.8"
download "com.vladsch.flexmark" "flexmark-util-data" "0.64.8"
download "com.vladsch.flexmark" "flexmark-util-dependency" "0.64.8"
download "com.vladsch.flexmark" "flexmark-util-format" "0.64.8"
download "com.vladsch.flexmark" "flexmark-util-html" "0.64.8"
download "com.vladsch.flexmark" "flexmark-util-misc" "0.64.8"
download "com.vladsch.flexmark" "flexmark-util-options" "0.64.8"
download "com.vladsch.flexmark" "flexmark-util-sequence" "0.64.8"
download "com.vladsch.flexmark" "flexmark-util-visitor" "0.64.8"
download "com.vladsch.flexmark" "flexmark-youtrack-converter" "0.64.8"
download "com.javax0.jamal" "jamal-mock" "2.8.2-SNAPSHOT"
download "com.javax0.jamal" "jamal-snippet" "2.8.2-SNAPSHOT"
download "com.javax0.javaLex" "javaLex" "1.0.2"
download "com.javax0.sourcebuddy" "SourceBuddy" "2.5.3"
download "com.javax0" "refi" "1.0.1"
download "org.ow2.asm" "asm" "9.7.1"
download "org.ow2.asm" "asm-tree" "9.7.1"
download "com.javax0.jamal" "jamal-yaml" "2.8.2-SNAPSHOT"
download "org.yaml" "snakeyaml" "2.3"
download "ognl" "ognl" "3.4.3"
download "org.javassist" "javassist" "3.30.2-GA"
download "com.javax0.jamal" "jamal-json" "2.8.2-SNAPSHOT"
download "org.json" "json" "20240303"
download "com.javax0.jamal" "jamal-prog" "2.8.2-SNAPSHOT"
download "com.javax0.jamal" "jamal-maven-load" "2.8.2-SNAPSHOT"
download "com.javax0.mavenDownload" "mavenDownloader" "1.1.0"
download "com.javax0.jamal" "jamal-sql" "2.8.2-SNAPSHOT"
download "com.github.jsqlparser" "jsqlparser" "5.0"
download "com.javax0.jamal" "jamal-xls" "2.8.2-SNAPSHOT"
download "org.apache.poi" "poi" "5.3.0"
download "commons-codec" "commons-codec" "1.17.0"
download "org.apache.commons" "commons-collections4" "4.4"
download "org.apache.commons" "commons-math3" "3.6.1"
download "commons-io" "commons-io" "2.16.1"
download "com.zaxxer" "SparseBitSet" "1.3"
download "org.apache.logging.log4j" "log4j-api" "2.23.1"
download "org.apache.poi" "poi-ooxml" "5.3.0"
download "org.apache.poi" "poi-ooxml-lite" "5.3.0"
download "org.apache.xmlbeans" "xmlbeans" "5.2.1"
download "com.github.virtuald" "curvesapi" "1.08"
download "org.apache.commons" "commons-compress" "1.26.2"
download "org.apache.commons" "commons-lang3" "3.14.0"
download "com.javax0.jamal" "jamal-rest" "2.8.2-SNAPSHOT"
download "com.javax0.jamal" "jamal-git" "2.8.2-SNAPSHOT"
download "com.javax0.jamal" "jamal-extensions" "2.8.2-SNAPSHOT"
download "org.eclipse.jgit" "org.eclipse.jgit" "6.6.1.202309021850-r"
download "com.googlecode.javaewah" "JavaEWAH" "1.2.3"
download "org.slf4j" "slf4j-api" "1.7.36"
download "com.javax0.jamal" "jamal-maven-input" "2.8.2-SNAPSHOT"
download "com.javax0.jamal" "jamal-jar-input" "2.8.2-SNAPSHOT"
download "com.javax0.jamal" "jamal-word" "2.8.2-SNAPSHOT"
download "com.javax0.jamal" "jamal-testsupport" "2.8.2-SNAPSHOT"
java -cp "$CLASSPATH" javax0.jamal.cmd.JamalMain $*