comparison make/linux/adlc_updater @ 1831:a50abfc67f31

6989736: fix mapfile warnings on solaris Reviewed-by: kvn, iveresov, jcoomes
author never
date Tue, 05 Oct 2010 17:38:40 -0700
parents 284d0af00d53
children
comparison
equal deleted inserted replaced
1830:a3f7f95b0165 1831:a50abfc67f31
13 /^#line 999999$/ {print "#line " (NR+1) " \"" F2 "\""; next} 13 /^#line 999999$/ {print "#line " (NR+1) " \"" F2 "\""; next}
14 {print} 14 {print}
15 ' F2=$2 15 ' F2=$2
16 mv $1+ $1 16 mv $1+ $1
17 } 17 }
18 [ -f $3/$1 ] && (fix_lines $2/$1 $3/$1; cmp -s $2/$1 $3/$1) || \ 18 fix_lines $2/$1 $3/$1
19 [ -f $3/$1 ] && cmp -s $2/$1 $3/$1 || \
19 ( [ -f $3/$1 ] && echo Updating $3/$1 ; touch $2/made-change ; mv $2/$1 $3/$1 ) 20 ( [ -f $3/$1 ] && echo Updating $3/$1 ; touch $2/made-change ; mv $2/$1 $3/$1 )