Rich Bennett | 4d4d7e7 | 2018-08-28 21:21:29 -0400 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | set -x |
| 3 | if [ ! -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 | |
| 11 | if [ ! -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 |