Changes between Version 2 and Version 3 of Ticket #14184


Ignore:
Timestamp:
02/26/13 12:35:14 (7 years ago)
Author:
jdemeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14184 – Description

    v2 v3  
    44sed -i -f /dev/stdin $file <<'EOF'
    55
    6 s/# *requires optional/# optional:/i;
    7 s/# *optional and /# optional; /i;
     6/sage: .*#/ {
     7s/\(#.*\) needs optional/\1 optional -/i;
     8s/\(#.*\) requires optional/\1 optional -/i;
     9s/\(#.*\) and optional/\1; optional/i;
     10s/\(#.*\) \(random\) optional/\1 \2; optional/i;
     11s/\(#.*\) \(long time\) optional/\1 \2; optional/i;
    812
    9 s/# *optional[-: ]* needs /# optional: /i;
    10 s/# *optional[-: ]* requires /# optional: /i;
    11 s/# *optional[-: ]* the /# optional: /i;
    12 s/# *optional[-: ]* package/# optional:/i;
    13 s/# *optional[-: ]* \([A-Za-z0-9]*\) command/# optional: \1/i;
    14 s/# *optional[-: ]* \([A-Za-z0-9]*\) and /# optional: \1 /i;
    15 s/# *optional[-: ]* \([A-Za-z0-9]*\) \(not tested\)/# optional: \1; \2/i;
     13s/\([#;,]\) *optional and /\1 optional; /i;
    1614
    17 s/# *optional[-: ]* internet connection/# optional: internet/i;
    18 s/# *optional[-: ]* GAP package \([A-Za-z0-9']*\)/# optional: gap_packages (\1 package)/i;
    19 s/# *optional[-: ]* GAP optional databases*/# optional: database_gap/i;
     15s/\([#;,]\) *optional[-:, ]* needs /\1 optional - /i;
     16s/\([#;,]\) *optional[-:, ]* requires /\1 optional - /i;
     17s/\([#;,]\) *optional[-:, ]* the /\1 optional - /i;
     18s/\([#;,]\) *optional[-:, ]* package/\1 optional -/i;
     19s/\([#;,]\) *optional[-: ]* GAP package \([A-Za-z0-9']*\)/\1 optional - gap_packages (\2 package)/i;
     20s/\([#;,]\) *optional[-: ]* GAP optional database[s]*/\1 optional - database_gap/i;
     21s/\([#;,]\) *optional[-: ]* \([A-Za-z0-9]*\) command/\1 optional - \2/i;
     22s/\([#;,]\) *optional[-: ]* \([A-Za-z0-9]*\) package/\1 optional - \2/i;
     23s/\([#;,]\) *optional[-: ]* \([A-Za-z0-9]*\) installed/\1 optional - \2/i;
     24s/\([#;,]\) *optional[-: ]* \([A-Za-z0-9]*\) and /\1 optional - \2 /i;
     25s/\([#;,]\) *optional[-: ]* \([A-Za-z0-9]*\) \(not tested\)/\1 optional - \2; \3/i;
    2026
    21 s/# *optional[-: ]* \(.*\)'\(.*\)'/# optional: \1\2/i;
     27s/\([#;,]\) *optional[-: ]* internet connection/\1 optional - internet/i;
    2228
    23 s/\(# *optional\)[-: ]*$/\1/i;
    24 s/# *optional[-: ]* \(.*\)# *$/# optional: \1/i;
     29s/\([#;,]\) *optional[-: ]* \(.*\)'\(.*\)'/\1 optional - \2\3/i;
     30
     31s/\([#;,]\) *\(optional - .*[^# ]\)[# ] *$/\1 \2/i;
     32s/\([#;,]\) *optional[-: ][-: ]*$/\1 optional/i;
     33}
    2534
    2635EOF