#
# Maintenance note: This hasn't been updated since 2018.

# OpenTegra
# https://cgit.freedesktop.org/xorg/driver/xf86-video-opentegra/
cd /tmp
rm -rf xdriver ; mkdir xdriver ; cd xdriver

git clone --depth 1 https://github.com/julbouln/xf86-video-armsoc-omap5
mv -fv xf86* xf86-video-armsoc_omap5 # otherwise it clashes with the main "armsoc" driver
DRV=xf86-video-armsoc_omap5
#DRV=$( echo xf86-* )
cd $DRV || exit 1
DRVVER=$( echo $(git rev-list --count master).$(git rev-parse --short master) )
cd ..
find $DRV/ -name '.git' -print0 | xargs -0 rm -rf
mv -fv $DRV $DRV-$DRVVER
tar -Ixz -cf $DRV-$DRVVER.tar.xz ${DRV}*
ls -1 $PWD/*.xz
