melpa/melpa

52 lines
1,005 B
Text
Raw Normal View History

2011-12-11 00:53:39 +00:00
#!/bin/bash
function melpa_update_epkgs {
echo "Updating epkgs..."
cd epkgs
git pull
cd ..
echo
}
function melpa_clear_archives {
echo "*** Clearing the archives folder..."
rm archives/*
echo
}
function melpa_build_pkglist {
echo "*** Building all packages..."
for pkg in `echo pkglist`; do
./buildarchive
done
echo
}
function melpa_build_archive {
echo "Building package: $pkg"
emacs --batch -l package-build.el -u dcurtis --eval "(package-build-archive \"$1\")"
echo
}
function melpa_sync {
echo "*** Pushing changes to the server..."
rsync -avz --delete archives/ milkbox.net:webapps/melpa/packages
echo
}
function melpa_generate_html {
echo "*** Building webpage..."
cd webpage
awk '{ if(/<!--list-of-packages-->/)
2011-12-13 14:22:02 +00:00
while((getline < "../pkglist")>0)
2011-12-11 00:53:39 +00:00
print "* " $0
else print}' index.tmpl > index.md
2011-12-13 14:22:02 +00:00
pandoc -s --mathml -t html --smart index.md > index.html
2011-12-11 00:53:39 +00:00
cd ..
echo
}
melpa_generate_html