7
0
mirror of https://git.rockylinux.org/rocky/comps.git synced 2024-11-21 20:51:24 +00:00
comps/scripts/update-comps
Louis Abel d5014e654f
semi-consistent comps
rocky 9 lh comps roughly matched centos stream 9. it was missing rhel
specific packages, and sometimes made diff/merges difficult. we added
them back, but the difference here is we are taking advantage of stream
10's "rhel_only" kind of concept, assuming this does not mess up
diff/merges.
2024-08-08 23:22:51 -07:00

16 lines
344 B
Bash
Executable File

#!/bin/bash
COMPSFILE=$1
DISTRO=$2
if [ -z "$COMPSFILE" ]; then
echo "Usage: $0 <compsfile>"
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}"