Browse Source

sde-config: introduced config_getfield() space tolerant helper for reading '#Foo:' fields

user/amery/test/random-cleanup
Alejandro Mery 14 years ago
parent
commit
3ef7347a41
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      lib/sde-config/functions.in

+ 6
- 1
lib/sde-config/functions.in

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: lib/sde-config/functions.in
# Copyright (C) 2006 - 2008 The OpenSDE Project
# Copyright (C) 2006 - 2010 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf
#
@ -16,6 +16,11 @@
. lib/core-functions.in
config_getfield() {
grep "^[\t ]*#[\t ]*$1[\t ]*:" "$2" 2> /dev/null |
cut -d: -f2- | sed -e 's,^[\t ]*,,' -e 's,[\t ]*$,,'
}
# Function to cache config.in and subconfig.in file lists
#
create_configin_list() {

Loading…
Cancel
Save