summaryrefslogtreecommitdiffstats
path: root/scripts/icecc-create-env-wrapper
blob: 3f112c9cdfcd136ed71419b9a2dbbcf5255337b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

"${PTXDIST_ICECC_CREATE_ENV_REAL}" "${@}" --compression none || exit

ptxd_get_path *.tar*
env="${ptxd_reply}"
mkdir tmp
cd tmp
tar xf "../${env}"

find -type f | xargs strip

tar -ch --numeric-owner -zvf "../${env//.*}.tar.gz" *

cd ..
rm -rf tmp
if [ "${env}" != "${env//.*}.tar.gz" ]; then
	rm "${env}"
fi