Adds update script for release 1.1.0.
[platal.git] / bin / lists.make_tpl.sh
CommitLineData
50e2ba89 1#!/bin/sh
0337d704 2
3TEMPLATES='/etc/mailman/xorg'
4URL='http://listes.polytechnique.org'
5TARGET="/var/lib/mailman/lists/$1/fr"
6
7MBOX=${1#*_}
8FQDN=${1%%_*}
9
10ALIST="${MBOX}-owner@${FQDN}"
11LIST="${MBOX}@${FQDN}"
12UIST="${MBOX}_${FQDN}"
13ADMIN="$URL/admin/$UIST"
14MEMBERS="$URL/members/$UIST"
15MODERATE="$URL/moderate/$UIST"
16
17mkdir -p "$TARGET"
18
19for tpl in $TEMPLATES/*txt
20do
21 cat $tpl \
22 | sed -e "s,{{{ALIST}}},$ALIST,g ; s,{{{LIST}}},$LIST,g ; s,{{{ADMIN}}},$ADMIN,g ; s,{{{MEMBERS}}},$MEMBERS,g ; s,{{{MODERATE}}},$MODERATE,g" \
23 > "$TARGET/${tpl#$TEMPLATES/}"
24done
25