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

Last change on this file since 2686 was 1761, checked in by goya, 10 years ago

oubli

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