mirror of
https://github.com/correl/melpa.git
synced 2024-12-19 03:00:50 +00:00
26 lines
464 B
Text
26 lines
464 B
Text
|
#!/bin/bash -e
|
||
|
|
||
|
export HOME=/home/melpa
|
||
|
cd ${HOME}/melpa
|
||
|
|
||
|
export MELPA_BRANCH=stable
|
||
|
export STABLE=t
|
||
|
|
||
|
source $HOME/melpa/scripts/env
|
||
|
|
||
|
## git pull
|
||
|
cd ${MELPA_HOME}
|
||
|
git fetch origin
|
||
|
git checkout ${MELPA_BRANCH}
|
||
|
git reset --hard origin/${MELPA_BRANCH}
|
||
|
git pull origin ${MELPA_BRANCH}
|
||
|
echo
|
||
|
|
||
|
# Build all the packages.
|
||
|
scripts/parallel_build_all
|
||
|
|
||
|
echo '{"completed":' `date "+%s"` '}' > /home/melpa/www/build-status.json
|
||
|
|
||
|
# Sleep for an hour before rebuilding.
|
||
|
sleep 1h
|