** Scripts that keep moodle-internallogin repo up-to-date
To check for new MOODLE STABLE branches and tags and automatically update internal login, run:
update-all.sh
(Note: update-all.sh will not push to the repo.)
(Note2: If moodle-internallogin is not clean, just remove it and this script will clone the repo from fresh.)
To create new MOODLE_XX_STABLE branches if there are new ones, run:
create-branches-for-moodle-internallogin.sh
To bring a branch up-to-update to its corresponding tag, run:
update-branch-to-tags.sh MOODLE_32_STABLE v3.2.3
TODO:
-
Objective: Bring a branch up to the latest tag
STABLE_BRANCH=MOODLE_32_STABLE for t in $(git tag -l v3.2.? |sort; git tag -l v3.2.?? |sort); do cd moodle git fetch --all git checkout
$t cd ../moodle-internallogin/ git fetch --all if [ $ (git branch |grep ${STABLE_BRANCH}) ]; thendone
-
Make sure fetch the latest from Moodle
IMPROVEMENT:
- Fetch new moodle / refresh moodle repo
- Refresh and merge all STABLE branches to InternalLogin
- Check in any new changes to InternalLogin