aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-11-21 08:21:05 +0300
committerValentin Popov <info@valentineus.link>2017-11-21 08:21:05 +0300
commit4643d795e8de550b66f36f8402debd0bff672d10 (patch)
tree40a100b311083da0728412504c05d6523e4ba96f /build.sh
parent605928f3af1f4a7c09124efbbc30324b3148c353 (diff)
downloadlocal_billingpatch-4643d795e8de550b66f36f8402debd0bff672d10.tar.xz
local_billingpatch-4643d795e8de550b66f36f8402debd0bff672d10.zip
Added the build script
Diffstat (limited to 'build.sh')
-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..d05fb5a
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+# Author: Valentin Popov
+# Email: info@valentineus.link
+# Date: 2017-11-21
+# 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-billingpatch" "./local_billingpatch"
+zip -9 -r "local_billingpatch.zip" "local_billingpatch" \
+ -x "local_billingpatch/.git*" \
+ -x "local_billingpatch/.travis.yml" \
+ -x "local_billingpatch/build.sh"
+
+# End of work
+exit 0 \ No newline at end of file