Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 37 lines (34 sloc) 0.822 kb
#!/bin/bash
# Install emacs-dbgr from git
run_cmd() {
echo "--- Running command: $@"
$@
rc=$?
echo "--- $@ exit status is $?"
return $rc
}
if (( $(id -u) != 0)) ; then
need_sudo='sudo'
else
need_sudo=''
fi
for program in git make $need_sudo ; do
if ! which $program >/dev/null 2>&1 ; then
echo "Cant find program $program in $PATH"
exit 1
fi
done
packages=emacs-test-unit
for pkg in $packages ; do
echo '******************************************'
echo Trying to install ${pkg}...
echo '******************************************'
run_cmd git clone http://github.com/rocky/${pkg}.git
(cd $pkg && \
run_cmd $SHELL ./autogen.sh && \
run_cmd ./configure && \
run_cmd make && \
run_cmd make check && \
run_cmd $need_sudo make install
)
done
Jump to Line
Something went wrong with that request. Please try again.