8
0
mirror of https://git.rockylinux.org/rocky/comps.git synced 2024-12-22 17:48:29 +00:00
comps/scripts/update-comps

16 lines
369 B
Plaintext
Raw Normal View History

2022-05-09 20:25:49 +00:00
#!/bin/bash
2024-06-24 16:40:09 +00:00
COMPSFILE=$1
DISTRO=$2
if [ -z "$COMPSFILE" ] || [ -z "$DISTRO" ]; then
echo "Usage: $0 <compsfile> <distro>"
exit 1
2024-06-24 16:40:09 +00:00
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}"