Skip to content

Instantly share code, notes, and snippets.

@octo
Created February 28, 2012 08:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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