mirror of
https://github.com/correl/melpa.git
synced 2025-01-08 19:08:13 +00:00
Further updates to directory changing problems.
Should be resolved to changing into the melpa directory initially, and then doing all cd commands relative to that directory.
This commit is contained in:
parent
b1d3db49df
commit
2d6dcf4ae0
1 changed files with 7 additions and 12 deletions
19
melpa
19
melpa
|
@ -1,61 +1,56 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
BASEDIR=`dirname $0`
|
BASEDIR=`dirname $0`
|
||||||
|
|
||||||
|
cd ${BASEDIR} || exit 1
|
||||||
|
|
||||||
function melpa_update_epkgs {
|
function melpa_update_epkgs {
|
||||||
echo "Updating epkgs..."
|
echo "Updating epkgs..."
|
||||||
cd ${BASEDIR}/epkgs || return 1
|
cd epkgs || return 1
|
||||||
git pull
|
git pull
|
||||||
cd -
|
cd ..
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
function melpa_clear_packages {
|
function melpa_clear_packages {
|
||||||
echo "*** Clearing the packages folder..."
|
echo "*** Clearing the packages folder..."
|
||||||
rm ${BASEDIR}/packages/*
|
rm /packages/*
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function melpa_build_pkglist {
|
function melpa_build_pkglist {
|
||||||
echo "*** Building all packages..."
|
echo "*** Building all packages..."
|
||||||
cd ${BASEDIR} || return 1
|
|
||||||
for pkg in `cat pkglist`; do
|
for pkg in `cat pkglist`; do
|
||||||
echo "Building package: $pkg"
|
echo "Building package: $pkg"
|
||||||
./buildpkg $pkg
|
./buildpkg $pkg
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
done
|
done
|
||||||
cd -
|
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
function melpa_build_archive {
|
function melpa_build_archive {
|
||||||
echo "Building package: $pkg"
|
echo "Building package: $pkg"
|
||||||
cd ${BASEDIR} || return 1
|
|
||||||
emacs --batch -l package-build.el -u dcurtis --eval "(package-build-archive \"$1\")"
|
emacs --batch -l package-build.el -u dcurtis --eval "(package-build-archive \"$1\")"
|
||||||
cd -
|
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
function melpa_sync {
|
function melpa_sync {
|
||||||
echo "*** Pushing changes to the server..."
|
echo "*** Pushing changes to the server..."
|
||||||
cd ${BASEDIR} || return 1
|
|
||||||
rsync -avz --delete packages webpage/index.html milkbox.net:webapps/melpa/
|
rsync -avz --delete packages webpage/index.html milkbox.net:webapps/melpa/
|
||||||
cd -
|
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
function melpa_generate_html {
|
function melpa_generate_html {
|
||||||
echo "*** Building webpage..."
|
echo "*** Building webpage..."
|
||||||
cd ${BASEDIR}/webpage || return 1
|
cd webpage || return 1
|
||||||
awk '{ if(/<!--list-of-packages-->/)
|
awk '{ if(/<!--list-of-packages-->/)
|
||||||
while((getline < "../pkglist")>0)
|
while((getline < "../pkglist")>0)
|
||||||
print "* " $0
|
print "* " $0
|
||||||
else print}' index.tmpl > index.md
|
else print}' index.tmpl > index.md
|
||||||
pandoc -s --mathml -t html --smart index.md > index.html
|
pandoc -s --mathml -t html --smart index.md > index.html
|
||||||
cd -
|
cd ..
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue