github.com/rajveermalviya/gamen@v0.1.2-0.20220930195403-9be15877c1aa/internal/xkbcommon/include/update-headers (about) 1 #!/bin/bash 2 set -e 3 4 pkgs=("libX11-devel" "xorg-x11-proto-devel" "libxkbcommon-x11-devel" "libxkbcommon-devel" "libxcb-devel") 5 6 for i in "${pkgs[@]}" 7 do 8 rm -f $i.rpm 9 done 10 11 go run ../../common/cmd/download-rpms/download-rpms.go ${pkgs[*]} 12 13 for i in "${pkgs[@]}" 14 do 15 rpm2archive -n $i.rpm 16 rm -rf $i 17 mkdir $i 18 tar -xf $i.rpm.tar --directory $i 19 cp -r $i/usr/include/* . 20 rm -rf $i $i.rpm.tar 21 done 22 23 for i in "${pkgs[@]}" 24 do 25 rm -f $i.rpm 26 done 27 28 go run ../../common/cmd/add-dummy-file/add-dummy-file.go github.com/rajveermalviya/gamen/internal/xkbcommon/include/