source: cpc/trunk/project/batch/amendements/compute_latest_loi.sh @ 2648

Last change on this file since 2648 was 2648, checked in by goya, 9 years ago

kicke les desinscrits avec is_active négatif

File size: 351 bytes
Line 
1#!/bin/bash
2
3loi=$1
4
5rm -f html/*
6
7perl download_amendements_loi.pl $loi > /tmp/download_amendements.log
8
9
10for 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
18        fileout=$(echo $file | sed 's/html/json/' | sed 's/\.asp/\.xml/')
19        perl cut_amdmt.pl $file > $fileout
20done;
21
Note: See TracBrowser for help on using the repository browser.