mirror of
https://github.com/correl/melpa.git
synced 2024-11-15 03:00:14 +00:00
25 lines
735 B
Text
25 lines
735 B
Text
|
#!/bin/bash -e
|
||
|
|
||
|
# Service for reporting missing and old packages.
|
||
|
|
||
|
export HOME=/home/melpa
|
||
|
|
||
|
BODY=`mktemp`
|
||
|
|
||
|
cd ${HOME}/melpa
|
||
|
|
||
|
echo "To: MP <dcurtis@milkbox.net>" > ${BODY}
|
||
|
echo "Subject: [MELPA] `date "+%Y%m%d %H:%M %z"`" >> ${BODY}
|
||
|
echo >> ${BODY}
|
||
|
echo "# Old Packages" >> ${BODY}
|
||
|
echo >> ${BODY}
|
||
|
emacs --no-site-file --batch -l package-build.el --eval '(setq package-archive-dir (expand-file-name "packages-stable" pb/this-dir)))' scripts/expired >> ${BODY}
|
||
|
echo >> ${BODY}
|
||
|
echo "# Missing Packages" >> ${BODY}
|
||
|
echo >> ${BODY}
|
||
|
emacs --no-site-file --batch -l package-build.el --eval '(setq package-archive-dir (expand-file-name "packages-stable" pb/this-dir)))' sscripts/missing >> ${BODY}
|
||
|
|
||
|
/usr/sbin/sendmail -t < ${BODY}
|
||
|
|
||
|
sleep 12h
|