intl/icu/source/config/make2sh.sed

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

michael@0 1 # Copyright (C) 1999-2011, International Business Machines Corporation and others. All Rights Reserved.
michael@0 2 s%^\([a-zA-Z0-9\._-]*\)[ ]*+=%\1=$(\1) %
michael@0 3 s%^[A-Z]*_SO_TARG*%## &%
michael@0 4 s%^SHARED_OBJECT.*%## &%
michael@0 5 s%^LD_SONAME.*%## &%
michael@0 6 s%$(\([^\)]*\))%${\1}%g
michael@0 7 s%^ %#M# %
michael@0 8 s@^[a-zA-Z%$.][^=]*$@#M#&@
michael@0 9 s@^\([a-zA-Z][-.a-zA-Z_0-9-]*\)[ ]*=[ ]*\(.*\)@\1="\2"@
michael@0 10 s@^\([a-zA-Z][-a-zA-Z_0-9-]*\)\.\([a-zA-Z_0-9-]*\)[ ]*=[ ]*\(.*\)@\1_\2=\3@
michael@0 11 s@^\([a-zA-Z][-a-zA-Z_0-9-]*\)\-\([a-zA-Z_0-9-]*\)[ ]*=[ ]*\(.*\)@\1_\2=\3@
michael@0 12 s@\${\([a-zA-Z][-a-zA-Z_0-9-]*\)\.\([a-zA-Z_0-9-]*\)}@${\1_\2}@g
michael@0 13 s@^\(prefix\)=\(.*\)@default_\1=\2\
michael@0 14 if [ "x${\1}" = "x" ]; then \1="$default_\1"; fi@
michael@0 15 s@^\(ENABLE_RPATH\)=\(.*\)@default_\1=\2\
michael@0 16 if [ "x${\1}" = "x" ]; then \1="$default_\1"; fi@
michael@0 17 s%^#SH#[ ]*%%
michael@0 18 s%'\$\$'%\\\$\\\$%g

mercurial