2017-12-02 16:02:08 +04:00
|
|
|
#!/bin/sh
|
|
|
|
# Author: Valentin Popov
|
|
|
|
# Email: info@valentineus.link
|
2017-12-15 11:48:55 +04:00
|
|
|
# Date: 2017-12-15
|
2017-12-02 16:02:08 +04:00
|
|
|
# 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"
|
2017-12-15 11:48:55 +04:00
|
|
|
zip -9 -r "auth_token.zip" "auth_token" \
|
|
|
|
-x "auth_token/.git*" \
|
|
|
|
-x "auth_token/.travis.yml" \
|
|
|
|
-x "auth_token/.CONTRIBUTING.md" \
|
2017-12-02 16:02:08 +04:00
|
|
|
-x "auth_token/build.sh"
|
|
|
|
|
|
|
|
# End of work
|
|
|
|
exit 0
|