Skip to content

Instantly share code, notes, and snippets.

@karaage0703
Created December 13, 2015 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karaage0703/955324396cf60e1dc839 to your computer and use it in GitHub Desktop.
Save karaage0703/955324396cf60e1dc839 to your computer and use it in GitHub Desktop.
Optimize build process on debian jessie
#!/bin/bash
# manipulate header path, before building caffe on debian jessie
# usage:
# 1. cd root of caffe
# 2. bash <this_script>
# 3. build
# transformations :
# #include "hdf5/serial/hdf5.h" -> #include "hdf5/serial/hdf5.h"
# #include "hdf5_hl.h" -> #include "hdf5/serial/hdf5_hl.h"
find . -type f -exec sed -i -e 's^"hdf5.h"^"hdf5/serial/hdf5.h"^g' -e 's^"hdf5_hl.h"^"hdf5/serial/hdf5_hl.h"^g' '{}' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment