aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-12-02 15:02:17 +0300
committerValentin Popov <info@valentineus.link>2017-12-02 15:02:17 +0300
commit43b2167b3525f0f64a1796bfaa4eb7e9478255e4 (patch)
treea7ce4c7282508684d6ae9eb03d70cc3a67988772
parent8509e3999c917a3a9f4c2dfb9ccbf1001e7b4ea4 (diff)
downloadtool_managertokens-43b2167b3525f0f64a1796bfaa4eb7e9478255e4.tar.xz
tool_managertokens-43b2167b3525f0f64a1796bfaa4eb7e9478255e4.zip
Build script
-rw-r--r--build.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100644
index 0000000..430e44d
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+# Author: Valentin Popov
+# Email: info@valentineus.link
+# Date: 2017-12-02
+# Usage: /bin/sh build.sh
+# Description: Build the final package for installation in Moodle.
+
+# Updating the Environment
+PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
+export PATH="$PATH:/usr/local/scripts"
+
+# Build the package
+cd ..
+mv "./moodle-tool_managertokens" "./tool_managertokens"
+zip -9 -r "tool_managertokens.zip" "tool_managertokens" \
+ -x "tool_managertokens/.git*" \
+ -x "tool_managertokens/.travis.yml" \
+ -x "tool_managertokens/build.sh"
+
+# End of work
+exit 0 \ No newline at end of file