Skip to content

Instantly share code, notes, and snippets.

@mattintosh4
Created August 31, 2017 16:05
Show Gist options
  • Save mattintosh4/a7741f7c72e4cb0e097b884152cefe6b to your computer and use it in GitHub Desktop.
Save mattintosh4/a7741f7c72e4cb0e097b884152cefe6b to your computer and use it in GitHub Desktop.
#!/usr/bin/ksh
set -e
set -x
set -u
name=dnsmasq
srcdir=${HOME}/src/
prefix=/opt/local/${name}
(cd ${srcdir}${name} && git pull --rebase)
(cd ${srcdir}${name} && rsync -av --delete . ../_build_${name})
cd ${srcdir}_build_${name}
make -j
make install PREFIX=${prefix}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment