Created
July 20, 2022 20:39
-
-
Save foxyseta/41ff3be0ce60227b90ff67344112d102 to your computer and use it in GitHub Desktop.
Preprocesses every .c file in the current folder using ../include/ as headers directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for file in *.c; do gcc -E -P -I ../include/ -o `expr substr $file 1 \( \( length $file \) - 2 \)`.i $file; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment