File indexing completed on 2024-05-05 04:52:23

0001 #!/bin/sh
0002 set -eu
0003 
0004 if [ "$(grep KAFFEINE_MAJOR_VERSION CMakeLists.txt)" == "" ]; then
0005   echo "Entering into the Kaffeine dir"
0006   cd kaffeine
0007 fi
0008 
0009 BASE_URL="https://git.linuxtv.org/media_tree.git"
0010 
0011 cd include
0012 rm dmx.h frontend.h
0013 
0014 wget -nv $BASE_URL/plain/include/uapi/linux/dvb/dmx.h
0015 wget -nv $BASE_URL/plain/include/uapi/linux/dvb/frontend.h
0016 unifdef -k -U__KERNEL__ -o dmx.h dmx.h || true
0017 unifdef -k -U__KERNEL__ -o frontend.h frontend.h || true
0018 sed 'N;s/,\n\}/\n\}/;P;D;' -i dmx.h
0019 sed 'N;s/,\n\}/\n\}/;P;D;' -i frontend.h
0020 sed 's/_UAPI_/_/g' -i dmx.h