Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/llvm/include Replace with a simple -e x for sed.
details: https://anonhg.NetBSD.org/src/rev/1da99a04f42b
branches: trunk
changeset: 325798:1da99a04f42b
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Jan 07 01:59:36 2014 +0000
description:
Replace with a simple -e x for sed.
diffstat:
external/bsd/llvm/include/Makefile | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (35 lines):
diff -r e873b87acbd9 -r 1da99a04f42b external/bsd/llvm/include/Makefile
--- a/external/bsd/llvm/include/Makefile Mon Jan 06 23:23:10 2014 +0000
+++ b/external/bsd/llvm/include/Makefile Tue Jan 07 01:59:36 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2014/01/05 16:38:06 joerg Exp $
+# $NetBSD: Makefile,v 1.28 2014/01/07 01:59:36 joerg Exp $
.include <bsd.init.mk>
@@ -150,9 +150,9 @@
llvm/Config/config.h: ${LLVM_TOPLEVEL}/Makefile.inc ${LLVM_TOPLEVEL}/config/llvm/Config/config.h.in
mkdir -p ${.TARGET:H}
${TOOL_SED} -e /LLVM_DEFAULT_TARGET_TRIPLE/d -e /LLVM_NATIVE_/d \
- -e /LLVM_VERSION_/d -e /PACKAGE_VERSION/d \
- < ${LLVM_TOPLEVEL}/config/llvm/Config/config.h.in | \
- head -n -1 > ${.TARGET}.tmp
+ -e /LLVM_VERSION_/d -e /PACKAGE_VERSION/d -e 'x' \
+ < ${LLVM_TOPLEVEL}/config/llvm/Config/config.h.in \
+ > ${.TARGET}.tmp
printf '#define LLVM_DEFAULT_TARGET_TRIPLE "${MACHINE_GNU_PLATFORM}"\n' >> ${.TARGET}.tmp
printf '#define PACKAGE_VERSION "${LLVM_VERSION} (trunk ${LLVM_REVISION})"\n' >> ${.TARGET}.tmp
printf '#define LLVM_VERSION_MAJOR ${LLVM_VERSION:C,\.[0-9]*,,}\n' >> ${.TARGET}.tmp
@@ -163,9 +163,9 @@
llvm/Config/llvm-config.h: ${LLVM_TOPLEVEL}/Makefile.inc ${LLVM_TOPLEVEL}/config/llvm/Config/llvm-config.h.in
mkdir -p ${.TARGET:H}
${TOOL_SED} -e /LLVM_DEFAULT_TARGET_TRIPLE/d -e /LLVM_NATIVE_/d \
- -e /LLVM_VERSION_/d -e /PACKAGE_VERSION/d \
- < ${LLVM_TOPLEVEL}/config/llvm/Config/llvm-config.h.in | \
- head -n -1 > ${.TARGET}.tmp
+ -e /LLVM_VERSION_/d -e /PACKAGE_VERSION/d -e 'x' \
+ < ${LLVM_TOPLEVEL}/config/llvm/Config/llvm-config.h.in \
+ > ${.TARGET}.tmp
printf '#define LLVM_DEFAULT_TARGET_TRIPLE "${MACHINE_GNU_PLATFORM}"\n' >> ${.TARGET}.tmp
printf '#define LLVM_VERSION_MAJOR ${LLVM_VERSION:C,\.[0-9]*,,}\n' >> ${.TARGET}.tmp
printf '#define LLVM_VERSION_MINOR ${LLVM_VERSION:C,[0-9]*\.,,}\n' >> ${.TARGET}.tmp
Home |
Main Index |
Thread Index |
Old Index