-
Louis Abel authoredLouis Abel authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
update-comps 396 B
#!/bin/bash
COMPSFILE=$1
DISTRO=$2
CURDIR="${0%/*}"
if [ -z "$COMPSFILE" ] || [ -z "$DISTRO" ]; then
echo "Usage: $0 <compsfile> <distro>"
exit 1
fi
LANG=C intltool-merge -x -u po/ $COMPSFILE.in $COMPSFILE
xsltproc --stringparam distro $DISTRO --novalid -o $COMPSFILE ${CURDIR}/comps-distro-only.xsl $COMPSFILE
echo "Cleaning up empty space left over"
sed -i '/^ $/d' "${COMPSFILE}"