source: cpc/trunk/project/bin/update_tops.sh @ 1537

Last change on this file since 1537 was 1537, checked in by roux, 10 years ago

script d'update de l'API pour cron bimensuellee

File size: 386 bytes
Line 
1#!/bin/bash
2
3php symfony top:Deputes
4for month in 06 07 08 09 10 11 12; do
5  php symfony top:Deputes 2007-$month-01
6done
7for year in 2008 2009 2010 2011 2012; do
8  if test $year -gt `date +%Y`; then
9    break
10  fi
11  for month in 01 02 03 04 05 06 07 08 09 10 11 12; do
12    if test $month -gt `date +%m`; then
13      break
14    fi
15    php symfony top:Deputes $year-$month-01
16  done
17done
18
19
Note: See TracBrowser for help on using the repository browser.