Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/conf Work around escaping issues with quotes in substitu...
details: https://anonhg.NetBSD.org/src/rev/a8f9ea08cdcd
branches: trunk
changeset: 331153:a8f9ea08cdcd
user: justin <justin%NetBSD.org@localhost>
date: Sun Aug 03 13:14:59 2014 +0000
description:
Work around escaping issues with quotes in substitutions, to fix cross builds
diffstat:
sys/conf/newvers.sh | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r f285ea95efa7 -r a8f9ea08cdcd sys/conf/newvers.sh
--- a/sys/conf/newvers.sh Sun Aug 03 12:49:32 2014 +0000
+++ b/sys/conf/newvers.sh Sun Aug 03 13:14:59 2014 +0000
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: newvers.sh,v 1.60 2014/08/03 09:13:11 apb Exp $
+# $NetBSD: newvers.sh,v 1.61 2014/08/03 13:14:59 justin Exp $
#
# Copyright (c) 1984, 1986, 1990, 1993
# The Regents of the University of California. All rights reserved.
@@ -209,6 +209,9 @@
# Increment the serial number in the version file
echo $(expr ${v} + 1) > version
+# work around escaping issues with different shells
+emptyq='""'
+
cat << _EOF > vers.c
/*
* Automatically generated file from $0
@@ -224,7 +227,7 @@
const char osrelease[] = "${osr}";
const char sccs[] = "@(#)" ${fullversion_source};
const char version[] = ${fullversion_source};
-const char buildinfo[] = ${buildinfo_source:-\"\"};
+const char buildinfo[] = ${buildinfo_source:-${emptyq}};
const char kernel_ident[] = "${id}";
const char copyright[] = ${copyright_source};
_EOF
Home |
Main Index |
Thread Index |
Old Index