source: scripts/backup/articles.sh@ 2775

Last change on this file since 2775 was 2775, checked in by Александър Шопов, 13 years ago

Скриптове ползвани преди за резервни копия и статиите

  • Property svn:executable set to *
File size: 635 bytes
Line 
1#!/bin/bash
2ARTICLEDIR=/home/ash/public_html/articles
3DATE=`date +%Y%m%d`
4MAILFAIL=dict-notifications@fsa-bg.org
5
6cd /home/ash/non-gtk
7svn up
8for 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
13do
14 xmlto html-nochunks $i -o $ARTICLEDIR
15if [ "x$?" != "x0" ]
16 then mail -s "$DATE: Problem with article generation" $MAILFAIL <<EOF
17===================
18On $DATE
19There was problem with generation of article from
20$i
21Please check and fix things!
22===================
23EOF
24fi
25done
Note: See TracBrowser for help on using the repository browser.