mirror of
https://github.com/correl/melpa.git
synced 2024-12-25 11:11:17 +00:00
49495e9b06
By recording each package's archive-entry separately we are able to build each recipe independently and then compile the archive contents afterwards.
28 lines
668 B
Bash
Executable file
28 lines
668 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
export LANG=en_US.UTF-8
|
|
source $(dirname ${0})/env
|
|
|
|
function unix_timestamp {
|
|
date "+%s"
|
|
}
|
|
|
|
function kill_all_jobs { jobs -p | xargs kill; }
|
|
trap kill_all_jobs SIGINT SIGTERM
|
|
|
|
|
|
function build_all {
|
|
PATH=$HOME/.cabal/bin:$HOME/usr/bin:$HOME/bin:$PATH
|
|
|
|
## run the script
|
|
cd ${MELPA_HOME}
|
|
# grep --files-with-match wiki recipes/* | xargs make -j1 &
|
|
make -j1 $(grep --files-with-match wiki recipes/*) &
|
|
# grep --files-without-match wiki recipes/* | xargs make -j4 &
|
|
make -j4 $(grep --files-without-match wiki recipes/*) &
|
|
wait
|
|
|
|
echo '{"completed":' `unix_timestamp` '}' > ${MELPA_WWW}/build-status.json
|
|
}
|
|
|
|
build_all
|