Ignore:
Timestamp:
Apr 4, 2012, 12:30:37 AM (9 years ago)
Author:
goya
Message:

Revert de r2648

Location:
cpc/trunk/project/batch/amendements
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/batch/amendements/compute_latest_loi.sh

    r2648 r2649  
    77perl download_amendements_loi.pl $loi > /tmp/download_amendements.log
    88
    9 
    10 for file in html/*; do
    11 
    12         if grep "$(md5sum $file | sed 's/ .*//')" disabled.list > /dev/null 2>&1;
    13         then
    14                 rm $file;
    15                 continue;
    16         fi
    17 
     9for file in html/*; do
    1810        fileout=$(echo $file | sed 's/html/json/' | sed 's/\.asp/\.xml/')
    1911        perl cut_amdmt.pl $file > $fileout
  • cpc/trunk/project/batch/amendements/cut_amdmt.pl

    r2648 r2649  
    3939$string =~ s/(\<p class="presente".*)\s*\<br[\/]?\>\s*[\n]?\s*(.*)/\1, \2/g;
    4040$string =~ s/\<br\>.*\n//g;
    41 $string =~ s/(&#8217;|’)/'/g;
     41$string =~ s/&#8217;/'/g;
    4242$string =~ s/&#339;/oe/g;
    4343$string =~ s/&#8211;/-/g;
     
    107107           $output = 'expose';
    108108        }
    109         $line2 =~ s/"\s*([^"]*)\s*"/« \1 »/g;
    110109        if (!$amdmt{$output}) { $amdmt{$output} = "<p>".$line2."</p>"; }
    111110        else { $amdmt{$output} = $amdmt{$output}."<p>".$line2."</p>"; }
Note: See TracChangeset for help on using the changeset viewer.