Added PO file. For some reason the Japanese PO file has a parse error, so omitted...
[virt-ctrl.git] / virt-ctrl / rebuild-icons.sh
1 #!/bin/sh -
2 # Copyright (C) 2008 Red Hat Inc., Richard W.M. Jones
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 # Generate vc_icons.ml
19
20 cat <<'EOF'
21 (* The file vc_icons.ml is automatically generated from rebuild-icons.sh
22  * Any changes you make will be lost.
23  *)
24
25 EOF
26
27 # Open any modules which may use icons.
28 echo "open Vc_connection_dlg"
29 echo
30
31 while [ $# -gt 0 ]; do
32     size="$1"
33     name="$2"
34     filename="$3"
35     shift 3
36
37     gdk-pixbuf-mlsource "$filename"
38     echo ";;"
39
40     name=`echo -n $name | tr -cs '[0-9a-zA-Z]' '_'`
41
42     echo "icon_${size}x${size}_$name := Some (pixbuf ()) ;;"
43 done