source:
scripts/backup/articles.sh
| Last change on this file was 2775, checked in by , 13 years ago | |
|---|---|
|
|
| File size: 635 bytes | |
| Rev | Line | |
|---|---|---|
| [2775] | 1 | #!/bin/bash |
| 2 | ARTICLEDIR=/home/ash/public_html/articles | |
| 3 | DATE=`date +%Y%m%d` | |
| 4 | MAILFAIL=dict-notifications@fsa-bg.org | |
| 5 | ||
| 6 | cd /home/ash/non-gtk | |
| 7 | svn up | |
| 8 | for i in \ | |
| 9 | /home/ash/non-gtk/dwheeler/why-opendocument-won-bg.xml \ | |
| 10 | /home/ash/non-gtk/gpl-license/pj.xml \ | |
| 11 | /home/ash/non-gtk/emoglen/anarchism.bg.xml \ | |
| 12 | /home/ash/non-gtk/oo-squares/oo-sqaures.xml | |
| 13 | do | |
| 14 | xmlto html-nochunks $i -o $ARTICLEDIR | |
| 15 | if [ "x$?" != "x0" ] | |
| 16 | then mail -s "$DATE: Problem with article generation" $MAILFAIL <<EOF | |
| 17 | =================== | |
| 18 | On $DATE | |
| 19 | There was problem with generation of article from | |
| 20 | $i | |
| 21 | Please check and fix things! | |
| 22 | =================== | |
| 23 | EOF | |
| 24 | fi | |
| 25 | done |
Note:
See TracBrowser
for help on using the repository browser.
![(please configure the [header_logo] section in trac.ini)](/project/gtp/chrome/site/your_project_logo.png)