mesa: add ARB_texture_buffer_range glTextureBufferRangeEXT function
[mesa.git] / .gitlab-ci / prepare-artifacts.sh
1 #!/bin/bash
2
3 set -e
4 set -o xtrace
5
6 # Delete unused bin and includes from artifacts to save space.
7 rm -rf install/bin install/include
8
9 # Strip the drivers in the artifacts to cut 80% of the artifacts size.
10 if [ -n "$CROSS" ]; then
11 STRIP=`sed -n -E "s/strip\s*=\s*'(.*)'/\1/p" "$CROSS_FILE"`
12 if [ -z "$STRIP" ]; then
13 echo "Failed to find strip command in cross file"
14 exit 1
15 fi
16 else
17 STRIP="strip"
18 fi
19 find install -name \*.so -exec $STRIP {} \;
20
21 # Test runs don't pull down the git tree, so put the dEQP helper
22 # script and associated bits there.
23 mkdir -p artifacts/
24 cp VERSION artifacts/
25 cp -Rp .gitlab-ci/deqp* artifacts/
26 cp -Rp .gitlab-ci/piglit artifacts/
27
28 # Tar up the install dir so that symlinks and hardlinks aren't each
29 # packed separately in the zip file.
30 tar -cf artifacts/install.tar install