1 |
#! /usr/bin/env bash |
#! /usr/bin/env bash |
2 |
# |
# |
3 |
# Converts -Dmacro to #define macro |
# Converts -Dmacro to #define macro |
4 |
# and -Umacro to #undef macro |
# and -Umacro to #undef macro |
5 |
# on standard output |
# on standard output |
6 |
# |
# |
7 |
# Any options that do not take the form -D* or -U* are placed as comments. |
# Any options that do not take the form -D* or -U* are placed as comments. |
13 |
|
|
14 |
cat << EOF |
cat << EOF |
15 |
/* |
/* |
16 |
This file created by convert_cpp_cmd2defines with the following command |
This file created by convert_cpp_cmd2defines with the following command line arguments: |
|
line arguments: |
|
17 |
$@ |
$@ |
18 |
*/ |
*/ |
19 |
|
|