summaryrefslogtreecommitdiffstats
path: root/sql/add_errmsg
blob: 86226926d3853915668a7b6da2eb0556a23ef993 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

if test $# -ne 1
then
  echo "Copies # error messages from share/english/errmsg.txt to other message files"
  echo "Usage: $0 number_of_messages_to_copy"
  exit 1;
fi

FILE=/tmp/add.$$
tail -$1 share/english/errmsg-utf8.txt > $FILE
for i in `ls share/*/errmsg-utf8.txt | grep -v english`
do
  cat $FILE >> $i
done
rm $FILE