diff options
| author | Sean Callanan <scallanan@apple.com> | 2012-09-10 22:43:22 +0000 |
|---|---|---|
| committer | Sean Callanan <scallanan@apple.com> | 2012-09-10 22:43:22 +0000 |
| commit | 3ff3199e61503b0c2ec332c928396443d60da37f (patch) | |
| tree | 192e6ce06ddde56fd4debecf49dc6fbfa246e699 | |
| parent | 14ce52492f4002c743e27dca48d02e7e9bfcf61c (diff) | |
| download | bcm5719-llvm-3ff3199e61503b0c2ec332c928396443d60da37f.tar.gz bcm5719-llvm-3ff3199e61503b0c2ec332c928396443d60da37f.zip | |
Fixed a bug where the LLDB_VERSION wasn't properly
truncated during install-headers.
<rdar://problem/12268130>
llvm-svn: 163559
| -rw-r--r-- | lldb/tools/install-headers/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/tools/install-headers/Makefile b/lldb/tools/install-headers/Makefile index 9a09ae5164a..b6df68221f0 100644 --- a/lldb/tools/install-headers/Makefile +++ b/lldb/tools/install-headers/Makefile @@ -7,11 +7,13 @@ install: clean: echo "clean (doing nothing)" +TRUNCATED_VERSION = $(shell echo $(CURRENT_PROJECT_VERSION) | /usr/bin/sed -E "s/^([0-9]+)(\.[0-9]+)?$$/\1/g") + installhdrs: cd "${TARGET_BUILD_DIR}/${LLDB_FRAMEWORK_INSTALL_DIR}/LLDB.framework/Headers" ;\ for file in *.h ;\ do \ /usr/bin/sed -i '' 's/\(#include\)[ ]*"lldb\/\(API\/\)\{0,1\}\(.*\)"/\1 <LLDB\/\3>/1' "$$file" ;\ /usr/bin/sed -i '' 's|<LLDB/Utility|<LLDB|' "$$file" ;\ - /usr/bin/sed -i '' "s|//#define LLDB_VERSION|#define LLDB_VERSION ${CURRENT_PROJECT_VERSION} |" "$$file" ;\ + /usr/bin/sed -i '' "s|//#define LLDB_VERSION|#define LLDB_VERSION $(TRUNCATED_VERSION) |" "$$file" ;\ done |

