File A_sle15-aggregate.sh of Package A_sle15-aggregate

#!/bin/bash
set -e
(
cat <<_EOF_
<!-- automatically generated by $0 -->
<aggregatelist>
  <aggregate project="SLE15">
_EOF_

  (
  echo "    <package>libx264:x264</package>"
for pkg in $(pbs ls SLE15)
do
  case "${pkg}" in
    apache-rpm-macros) continue ;;
    broadcom-wl) continue ;;
    build-compare) continue ;;
    ffmpeg) continue ;;
    ftgl) continue ;;
    gpg-offline) continue ;;
    java-1_5_0-gcj-compat) continue ;;
    libdvdcss2) continue ;;
    libinstpatch) continue ;;
    libxcb) continue ;;
    packagehub) continue ;;
    r8168) continue ;;
  esac
  echo "    <package>${pkg}</package>"
done
  ) | sort -u

cat <<_EOF_
    <repository source="SLE_15" target="SLE_15" />
  </aggregate>
</aggregatelist>
_EOF_
) > '_aggregate'