Changes in tools/xcw/bin/helenos-bld-config [3875f106:a5c468e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/xcw/bin/helenos-bld-config
r3875f106 ra5c468e 1 1 #!/bin/bash 2 2 # 3 # Copyright (c) 201 5Jiri Svoboda3 # Copyright (c) 2018 Jiri Svoboda 4 4 # All rights reserved. 5 5 # … … 35 35 MAKEFILE_COMMON="$SRC_ROOT"/Makefile.common 36 36 MAKEFILE_CONFIG="$SRC_ROOT"/Makefile.config 37 CONFIG_MK="$SRC_ROOT"/uspace/export/config.mk 37 38 38 39 # Extract simple 'name = value' variable definition from Makefile … … 42 43 file_name="$2" 43 44 44 sed -n "s/^$field_name = \\(.*\\)$/\\1/p" "$file_name" 45 sed -n "s/^$field_name \\{0,1\\}= \\{0,1\\}\\(.*\\)$/\\1/p" "$file_name" | \ 46 sed "s/^\"//" | sed "s/\"$//" 45 47 } 46 48 … … 54 56 echo "__${ENDIAN}__" 55 57 ;; 58 *.--cflags) extract_field "HELENOS_CFLAGS" "$CONFIG_MK";; 59 *.--ldflags) extract_field "HELENOS_LDFLAGS" "$CONFIG_MK";; 56 60 (*) 57 61 echo "Unknown option $1" >&2
Note:
See TracChangeset
for help on using the changeset viewer.