diff-makepkg-conf 1.1 KB

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env bash
  2. # This is a script for the Parabola maintainers to run to check how
  3. # Parabola's `makepkg.conf`s are different thant the Arch{,32,ARM}
  4. # upstreams.
  5. set -e -o pipefail
  6. rm -rf src
  7. makepkg -os
  8. curl https://gitlab.archlinux.org/archlinux/packaging/packages/pacman/-/raw/main/makepkg.conf >src/makepkg.conf.arch
  9. curl https://git.archlinux32.org/packages/plain/core/pacman/makepkg.conf >src/makepkg.conf.arch32
  10. curl https://raw.githubusercontent.com/archlinuxarm/PKGBUILDs/master/core/pacman/PKGBUILD >src/PKGBUILD.archarm
  11. curl https://raw.githubusercontent.com/archlinuxarm/PKGBUILDs/master/core/pacman/makepkg.conf >src/makepkg.conf.archarm.in
  12. CARCH=armv7h bash \
  13. -c "$(<src/PKGBUILD.archarm \
  14. sed -n '/case/,/sed.*pacman.conf/p' |
  15. sed -e /pacman.conf/d \
  16. -e /install/d \
  17. -e 's, -i "\$pkgdir/etc/makepkg.conf",,')" \
  18. <src/makepkg.conf.archarm.in \
  19. >src/makepkg.conf.archarm
  20. set +e
  21. diff -u --color=auto src/makepkg.conf.{arch,x86_64}
  22. diff -u --color=auto src/makepkg.conf.{arch32,i686}
  23. diff -u --color=auto src/makepkg.conf.{archarm,armv7h}