source: cpc/trunk/project/bin/load_amdmts_loi @ 3078

Last change on this file since 3078 was 3078, checked in by nosdeputes, 7 years ago

adapt loader amdmts specifique pr un texte a new legislature

  • Property svn:executable set to *
File size: 825 bytes
Line 
1#!/bin/bash
2
3loi=$1
4
5. $(echo $0 | sed 's/[^\/]*$//')db.inc
6cd $PATH_APP
7
8# Récupération et création des JSON
9
10#echo Amendements
11#echo =======================
12cd batch/amendements ; bash compute_latest_loi.sh $LEGISLATURE $loi ; cd -
13
14# Chargement via tasks
15
16#echo Load Amendements
17#echo =======================
18while ls batch/amendements/json | grep [a-z] > /dev/null ; do
19        php symfony cc --env=test  --app=frontend > /dev/null
20        php symfony load:Amdmts
21done;
22
23# Postprocessings
24
25#echo clean cache
26#rm -r cache/frontend/prod/template/*/all/amendement/parlementaireSection/id/$loi
27#rm -r cache/frontend/prod/template/*/all/amendement/parlementaire/slug/*
28#rm -r cache/frontend/prod/template/*/all/amendement/find/loi/${loi}/numero/*
29#rm cache/frontend/prod/template/*/all/amendement/show/loi/${loi}/numero/*
30
Note: See TracBrowser for help on using the repository browser.