27
edits
(→The script: Add support for Pilatus 12M, give help if $5 defined, i.e. unquoted frame pattern) |
(→The script: fixed editing error) |
||
Line 1,261: | Line 1,261: | ||
# Create a pattern like "XX\|YY" to search overriden parameters. | # Create a pattern like "XX\|YY" to search overriden parameters. | ||
REDEF_TOKENS="POLARIZATION\|ROTATION_AXIS\|TRUSTED_REGION" | REDEF_TOKENS="POLARIZATION\|ROTATION_AXIS\|TRUSTED_REGION" | ||
[ "$ | [ "$SEGMENTED" != "" ] && REDEF_TOKENS=$REDEF_TOKENS"\|ORGX\|ORGY\|DETECTOR_DISTANCE\|" | ||
pattern=$(grep "$REDEF_TOKENS" $site_file | grep -v SEGMENT | uniq | awk 'match($0,/^ *(\w+) *=/,a){x=x"\\|"a[1];}END{print substr(x,3);}') | pattern=$(grep "$REDEF_TOKENS" $site_file | grep -v SEGMENT | uniq | awk 'match($0,/^ *(\w+) *=/,a){x=x"\\|"a[1];}END{print substr(x,3);}') | ||
if [ "$pattern" != "" -a $(grep "^!! *\($pattern\)" XDS.INP) != ""]; then | if [ "$pattern" != "" -a $(grep "^!! *\($pattern\)" XDS.INP) != ""]; then |
edits