blob: 0f5aedda566dcdf374b312c1ead4f2a92f2c4ed8 [file] [log] [blame]
Rich Bennett4d4d7e72018-08-28 21:21:29 -04001#!/bin/bash
2set -x
3if [ ! -d /usr/share/plantuml ]
4 then
5 sudo mkdir -p /usr/share/plantuml
6 cd /usr/share/plantuml
7 sudo wget https://nexus.onap.org/service/local/repositories/central/content/net/sourceforge/plantuml/plantuml/8059/plantuml-8059.jar
8 sudo mv plantuml-8059.jar plantuml.jar
9 fi
10
11if [ ! -f /usr/bin/plantuml ]
12 then
13 sudo touch /usr/bin/plantuml
14 sudo chmod +w /usr/bin/plantuml
15 echo "#!/bin/bash" > /tmp/x.$$
16 echo "java -jar /usr/share/plantuml/plantuml.jar \$@" >> /tmp/x.$$
17 sudo cp /tmp/x.$$ /usr/bin/plantuml
18 sudo chmod +x /usr/bin/plantuml
19 fi