Skip to content

Instantly share code, notes, and snippets.

@nicoster
Created April 13, 2012 06:28
Show Gist options
  • Select an option

  • Save nicoster/2374379 to your computer and use it in GitHub Desktop.

Select an option

Save nicoster/2374379 to your computer and use it in GitHub Desktop.
Build your boost::preprocessor library
#!/bin/bash
src=/tmp/boostpp.cpp
cat>$src<<EOF
#include <boost/preprocessor/config/config.hpp>
#include <boost/preprocessor/repetition.hpp>
#include <boost/preprocessor/array.hpp>
EOF
cat $(g++ -M $src |grep boost/preprocessor/|sed -e 's/\\//g')|grep include -v|sed -e 's/BOOST/MY/g'>mypreprocessor.h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment