1
0
mirror of https://github.com/imapsync/imapsync.git synced 2024-11-17 00:02:29 +01:00
imapsync/memo

93 lines
1.6 KiB
Plaintext
Raw Normal View History

2011-03-12 03:43:54 +01:00
#!/bin/sh
software_version() {
VERSION=`cat VERSION`
}
niouzes_compil() {
DIR_SAVE=`pwd`
cd /home/gilles/public_html/www.linux-france.org/html/
m4 niouzes.m4 > niouzes.xml
python ./niouzes/getmynews.py --neuf niouzes.xml > niouzes-neuf.html
python ./niouzes/getmynews.py --html niouzes.xml > niouzes-html.html
cd $DIR_SAVE
}
2011-03-12 03:44:35 +01:00
2011-03-12 03:43:54 +01:00
lfo_announce() {
software_version
NEWS_FILE="/home/gilles/public_html/www.linux-france.org/html/niouzes/niouzes_imapsync.xml"
if ! newer VERSION $NEWS_FILE; then
echo "$VERSION already announced"
else
2011-03-12 03:43:55 +01:00
cat > $NEWS_FILE << EOF
2011-03-12 03:43:54 +01:00
<news date="`date '+%Y%m%d'`">
2011-03-12 03:44:35 +01:00
`LANG=fr_FR date '+%A %d %B %Y'` : Synchronisez ou migrez vos boites
aux lettres avec <20>conomie et l'outil <A
2011-03-12 03:43:54 +01:00
HREF="prj/imapsync/">imapsync $VERSION</A> (Gilles LAMIRAL)
</news>
EOF
fi
niouzes_compil
}
2011-03-12 03:44:27 +01:00
fm_read_param() {
# read definitions
. $NEWS_FILE_FM_INP
}
2011-03-12 03:44:35 +01:00
fm_init() {
2011-03-12 03:44:21 +01:00
software_version
2011-03-12 03:44:22 +01:00
NEWS_FILE_FM="/home/gilles/public_html/imapsync/freshmeat_submition"
2011-03-12 03:44:27 +01:00
NEWS_FILE_FM_INP=${NEWS_FILE_FM}.inp
NEWS_FILE_FM_OUT=${NEWS_FILE_FM}.out
2011-03-12 03:44:35 +01:00
}
2011-03-12 03:44:27 +01:00
2011-03-12 03:44:35 +01:00
fm_read_announce() {
fm_init
fm_read_param
cat << EOF
2011-03-12 03:44:21 +01:00
Project: imapsync
Version: $VERSION
2011-03-12 03:44:27 +01:00
Release-Focus: $RELEASE_FOCUS
2011-03-12 03:44:22 +01:00
Hide: Y
2011-03-12 03:44:21 +01:00
Home-Page-URL: http://www.linux-france.org/prj/imapsync/
Gzipped-Tar-URL: http://www.linux-france.org/prj/imapsync/dist/
2011-03-12 03:44:27 +01:00
$TEXT_BODY
2011-03-12 03:44:21 +01:00
EOF
2011-03-12 03:44:35 +01:00
}
fm_announce() {
fm_init
if ! newer VERSION $NEWS_FILE_FM_OUT; then
echo "$VERSION already submitted on freshmeat"
else
if newer VERSION $NEWS_FILE_FM_INP; then
echo "Update $NEWS_FILE_FM_INP please"
return 1
fi
fm_read_param
fm_read_announce > $NEWS_FILE_FM_OUT
2011-03-12 03:44:27 +01:00
freshmeat-submit < $NEWS_FILE_FM_OUT
2011-03-12 03:44:21 +01:00
fi
}