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