aboutsummaryrefslogtreecommitdiff
path: root/roll-tarballs.sh
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-06-19 11:01:22 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-06-19 11:01:22 +0200
commitc032f0e341c981036e9b3245a0e0710ad61599d0 (patch)
tree50601a4e878f322af43f92136987909f4c6739f6 /roll-tarballs.sh
parent014365877282512eb0e0901e22b523b518dcb308 (diff)
downloadnx-libs-c032f0e341c981036e9b3245a0e0710ad61599d0.tar.gz
nx-libs-c032f0e341c981036e9b3245a0e0710ad61599d0.tar.bz2
nx-libs-c032f0e341c981036e9b3245a0e0710ad61599d0.zip
roll-tarball.sh: Fix tarball creation, now that we pull in Mesa as a git-subtree. This basically moves versioned folders around and drops the Mesa/ and Mesa.patches/ symlinks.
Diffstat (limited to 'roll-tarballs.sh')
-rwxr-xr-xroll-tarballs.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/roll-tarballs.sh b/roll-tarballs.sh
index fe014baed..b38b9abdd 100755
--- a/roll-tarballs.sh
+++ b/roll-tarballs.sh
@@ -111,6 +111,16 @@ if [ "x$MODE" = "xfull" ]; then
rm -f "nx-X11/programs/Xserver/include/.gitignore"
rm -f "nx-X11/programs/Xserver/GL/.gitignore"
rm -f "nx-X11/include/.gitignore"
+
+ # bring Mesa in shape, drop symlinks and move versioned Mesa-bundle to
+ # nx-X11/extras/Mesa. Deal with the Mesa.patches symlink/folder accordingly
+ MESA_VERSION="$(readlink nx-X11/extras/Mesa | cut -d"_" -f2)"
+ rm "nx-X11/extras/Mesa"
+ rm "nx-X11/extras/Mesa.patches"
+ mv "nx-X11/extras/Mesa_${MESA_VERSION}" "nx-X11/extras/Mesa"
+ mv "nx-X11/extras/Mesa.patches_${MESA_VERSION}" "nx-X11/extras/Mesa.patches"
+
+ # shrink Mesa to what we really need (and nothing else)
rm -Rf "nx-X11/extras/Mesa/"{bin/,configs/,docs/,doxygen/,progs/,vms/,windows/,Makefile,Makefile.*,descrip.mms,mms-config.}
rm -Rf "nx-X11/extras/Mesa/include/"{GLES,GLView.h}
rm -f "nx-X11/extras/Mesa/include/GL/"{amesa.h,directfbgl.h,dmesa.h,foomesa.h,fxmesa.h,ggimesa.h,glfbdev.h,gl_mangle.h,glu.h,glu_mangle.h,glutf90.h,glut.h,glut_h.dja,glx_mangle.h,Makefile.am,mesa_wgl.h,mglmesa.h,miniglx.h,svgamesa.h,uglglutshapes.h,uglmesa.h,vms_x_fix.h,wmesa.h,xmesa_x.h}