Skip to content

Instantly share code, notes, and snippets.

@octo
Created February 28, 2012 08:19
Show Gist options
  • Save octo/1930783 to your computer and use it in GitHub Desktop.
Save octo/1930783 to your computer and use it in GitHub Desktop.
Simple bash script for installing the MongoDB C library.
#!/bin/bash
set -x
[[ -n "$PREFIX" ]] || PREFIX=/tmp/mongo-c-driver
cd $(basename $0)
install -d "$PREFIX" "$PREFIX/include" "$PREFIX/lib"
install -C *.so "$PREFIX/lib"
install -C src/*.h "$PREFIX/include"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment