Skip to content

Instantly share code, notes, and snippets.

@boyvanamstel
Created August 6, 2014 14:30
Show Gist options
  • Save boyvanamstel/781954f59e2417a518c8 to your computer and use it in GitHub Desktop.
Save boyvanamstel/781954f59e2417a518c8 to your computer and use it in GitHub Desktop.
Remove '#define DEBUG 0' from Receigen's receipt.h to be able to use '#ifdef DEBUG'. Add at the bottom of Receigen's build phase script.
# Remove #define DEBUG 0
awk '!/#define DEBUG 0/' "$DERIVED_FILES_DIR"/receipt.h > "$DERIVED_FILES_DIR"/receipt.temp && mv "$DERIVED_FILES_DIR"/receipt.temp "$DERIVED_FILES_DIR"/receipt.h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment