Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | Remove host information from version.h |
| 2 | |
| 3 | make lsof not include host information |
| 4 | |
| 5 | Upstream-Status: Inappropriate [embedded specific] |
| 6 | |
| 7 | Signed-off-by: Li Wang <li.wang@windriver.com> |
| 8 | --- |
| 9 | dialects/linux/Makefile | 50 +++++++++-------------------------------------- |
| 10 | 1 file changed, 9 insertions(+), 41 deletions(-) |
| 11 | |
| 12 | diff --git a/dialects/linux/Makefile b/dialects/linux/Makefile |
| 13 | index 2bea108..792142b 100644 |
| 14 | --- a/dialects/linux/Makefile |
| 15 | +++ b/dialects/linux/Makefile |
| 16 | @@ -76,48 +76,16 @@ version.h: FRC |
| 17 | @echo Constructing version.h |
| 18 | @rm -f version.h |
| 19 | @echo '#define LSOF_BLDCMT "${LSOF_BLDCMT}"' > version.h; |
| 20 | - @echo '#define LSOF_CC "${CC}"' >> version.h |
| 21 | - @echo '#define LSOF_CCV "${CCV}"' >> version.h |
| 22 | - @echo '#define LSOF_CCDATE "'`date`'"' >> version.h |
| 23 | - @echo '#define LSOF_CCFLAGS "'`echo ${CFLAGS} | sed 's/\\\\(/\\(/g' | sed 's/\\\\)/\\)/g' | sed 's/"/\\\\"/g'`'"' >> version.h |
| 24 | + @echo '#define LSOF_CC ""' >> version.h |
| 25 | + @echo '#define LSOF_CCV ""' >> version.h |
| 26 | + @echo '#define LSOF_CCDATE ""' >> version.h |
| 27 | + @echo '#define LSOF_CCFLAGS ""' >> version.h |
| 28 | @echo '#define LSOF_CINFO "${CINFO}"' >> version.h |
| 29 | - @if [ "X${LSOF_HOST}" = "X" ]; then \ |
| 30 | - echo '#define LSOF_HOST "'`uname -n`'"' >> version.h; \ |
| 31 | - else \ |
| 32 | - if [ "${LSOF_HOST}" = "none" ]; then \ |
| 33 | - echo '#define LSOF_HOST ""' >> version.h; \ |
| 34 | - else \ |
| 35 | - echo '#define LSOF_HOST "${LSOF_HOST}"' >> version.h; \ |
| 36 | - fi \ |
| 37 | - fi |
| 38 | - @echo '#define LSOF_LDFLAGS "${CFGL}"' >> version.h |
| 39 | - @if [ "X${LSOF_LOGNAME}" = "X" ]; then \ |
| 40 | - echo '#define LSOF_LOGNAME "${LOGNAME}"' >> version.h; \ |
| 41 | - else \ |
| 42 | - if [ "${LSOF_LOGNAME}" = "none" ]; then \ |
| 43 | - echo '#define LSOF_LOGNAME ""' >> version.h; \ |
| 44 | - else \ |
| 45 | - echo '#define LSOF_LOGNAME "${LSOF_LOGNAME}"' >> version.h; \ |
| 46 | - fi; \ |
| 47 | - fi |
| 48 | - @if [ "X${LSOF_SYSINFO}" = "X" ]; then \ |
| 49 | - echo '#define LSOF_SYSINFO "'`uname -a`'"' >> version.h; \ |
| 50 | - else \ |
| 51 | - if [ "${LSOF_SYSINFO}" = "none" ]; then \ |
| 52 | - echo '#define LSOF_SYSINFO ""' >> version.h; \ |
| 53 | - else \ |
| 54 | - echo '#define LSOF_SYSINFO "${LSOF_SYSINFO}"' >> version.h; \ |
| 55 | - fi \ |
| 56 | - fi |
| 57 | - @if [ "X${LSOF_USER}" = "X" ]; then \ |
| 58 | - echo '#define LSOF_USER "${USER}"' >> version.h; \ |
| 59 | - else \ |
| 60 | - if [ "${LSOF_USER}" = "none" ]; then \ |
| 61 | - echo '#define LSOF_USER ""' >> version.h; \ |
| 62 | - else \ |
| 63 | - echo '#define LSOF_USER "${LSOF_USER}"' >> version.h; \ |
| 64 | - fi \ |
| 65 | - fi |
| 66 | + @echo '#define LSOF_HOST ""' >> version.h; |
| 67 | + @echo '#define LSOF_LDFLAGS ""' >> version.h |
| 68 | + @echo '#define LSOF_LOGNAME ""' >> version.h; |
| 69 | + @echo '#define LSOF_SYSINFO ""' >> version.h; |
| 70 | + @echo '#define LSOF_USER ""' >> version.h; |
| 71 | @sed '/VN/s/.ds VN \(.*\)/#define LSOF_VERSION "\1"/' < version >> version.h |
| 72 | |
| 73 | FRC: |
| 74 | -- |
| 75 | 1.7.9.5 |
| 76 | |