diff options
Diffstat (limited to 'source/x/x11/src/get-xf86-video-nouveau.sh')
-rwxr-xr-x | source/x/x11/src/get-xf86-video-nouveau.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/source/x/x11/src/get-xf86-video-nouveau.sh b/source/x/x11/src/get-xf86-video-nouveau.sh new file mode 100755 index 00000000..72d3efd3 --- /dev/null +++ b/source/x/x11/src/get-xf86-video-nouveau.sh @@ -0,0 +1,22 @@ +# Pull a stable branch + patches +BRANCH=master + +rm -rf xf86-video-nouveau +git clone git://anongit.freedesktop.org/git/nouveau/xf86-video-nouveau/ + +# use master branch +#( cd xf86-video-nouveau +# git checkout $BRANCH || exit 1 +#) + +HEADISAT="$(cat xf86-video-nouveau/.git/packed-refs | grep refs/remotes/origin/$BRANCH | cut -b1-7)" +# Cleanup. We're not packing up the whole git repo. +( cd xf86-video-nouveau && find . -type d -name ".git*" -exec rm -rf {} \; 2> /dev/null ) +DATE=$(date +%Y%m%d) +mv xf86-video-nouveau xf86-video-nouveau-git_${DATE}_${HEADISAT} +tar cf xf86-video-nouveau-git_${DATE}_${HEADISAT}.tar xf86-video-nouveau-git_${DATE}_${HEADISAT} +xz -9 xf86-video-nouveau-git_${DATE}_${HEADISAT}.tar +rm -rf xf86-video-nouveau-git_${DATE}_${HEADISAT} +echo +echo "xf86-video-nouveau branch $BRANCH with HEAD at $HEADISAT packaged as xf86-video-nouveau-git_${DATE}_${HEADISAT}.tar.xz" +echo |