aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-12-02 15:02:08 +0300
committerValentin Popov <info@valentineus.link>2017-12-02 15:02:08 +0300
commit1d255ed794dfefb0303d07dc7433bd3491fcf459 (patch)
treeb90e25f108e85ba2287b40843b9a087ce04e0ff4
parent79b3921cdcfc22f7a353a1986fac630a02816690 (diff)
downloadauth_token-1d255ed794dfefb0303d07dc7433bd3491fcf459.tar.xz
auth_token-1d255ed794dfefb0303d07dc7433bd3491fcf459.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..cce96e7
--- /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-auth_token" "./auth_token"
+zip -9 -r "auth_token.zip" "auth_token" \
+ -x "auth_token/.git*" \
+ -x "auth_token/.travis.yml" \
+ -x "auth_token/build.sh"
+
+# End of work
+exit 0 \ No newline at end of file