#!/bin/bash COMPSFILE=$1 DISTRO=$2 if [ -z "$COMPSFILE" ]; then echo "Usage: $0 " exit 1 fi LANG=C intltool-merge -x -u po/ $COMPSFILE.in $COMPSFILE xsltproc --stringparam distro $DISTRO --novalid -o $COMPSFILE comps-distro-only.xsl $COMPSFILE echo "Cleaning up empty space left over" sed -i '/^ $/d' "${COMPSFILE}"