aboutsummaryrefslogtreecommitdiff
path: root/package.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package.sh')
-rwxr-xr-xpackage.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/package.sh b/package.sh
new file mode 100755
index 00000000..d1db4f4a
--- /dev/null
+++ b/package.sh
@@ -0,0 +1,11 @@
+rm -f traccar-web.war
+mkdir tmp/
+mv war/WEB-INF/classes/org/traccar/web/client/ tmp/
+mv war/WEB-INF/deploy/ tmp/
+mv war/WEB-INF/lib/mysql-* tmp/
+jar cv -C war/ . > traccar-web.war
+mv tmp/mysql-* war/WEB-INF/lib/
+mv tmp/deploy/ war/WEB-INF/
+mv tmp/client/ war/WEB-INF/classes/org/traccar/web/
+rm -r -f tmp/
+