forked from melpa/melpa
/
melpa
executable file
·50 lines (41 loc) · 946 Bytes
/
melpa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/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-->/)
while((getline < "../buildlist")>0)
print "* " $0
else print}' index.tmpl > index.md
cd ..
echo
}
melpa_generate_html