#!/bin/bash

{
  echo "# Copyright (C) 2009, SUSE Linux GmbH, Nuremberg"
  echo "#"
  echo "# This file is distributed under the same license as @PACKAGE@ package. FIRST"
  echo ""

  for f in *.dtd; do
    awk -F\" '\
{x=$1;sub(/[^ ]*/,"",x)
printf ("#: %s\n#.%s\nmsgid \"%s\"\nmsgstr \"\"\n\n", FILENAME, x, $2)}' $f
  done
  for f in *.properties; do
    awk -F= '\
{printf ("#: %s\n#. %s\nmsgid \"%s\"\nmsgstr \"\"\n\n", FILENAME, $1, $2)}' $f
  done
} > susefox.pot

exit 0
