parent
4fc7fe62d8
commit
9d94005453
@ -1,20 +1,19 @@
|
||||
#! /bin/bash
|
||||
|
||||
version=2.0.22
|
||||
set -euxo pipefail
|
||||
|
||||
version=2.0.23
|
||||
prerel=
|
||||
|
||||
src=waf-${version}${prerel}.tar.bz2
|
||||
dst=${src%.tar.bz2}.stripped.tar.bz2
|
||||
|
||||
rm -f ${dst} ${dst%.bz2}
|
||||
cp -av ${src} ${dst}
|
||||
|
||||
bzip2 -d ${dst}
|
||||
|
||||
tar --delete --file=${dst%.bz2} \
|
||||
waf-${version}/docs/sphinx/_images/waf-64x64.png \
|
||||
waf-${version}/docs/slides/presentation/gfx/waflogo.svg
|
||||
|
||||
touch -m -r ${src} ${dst%.bz2}
|
||||
readarray -t files <<-EOF
|
||||
waf-${version}/docs/sphinx/_images/waf-64x64.png
|
||||
waf-${version}/docs/slides/presentation/gfx/waflogo.svg
|
||||
EOF
|
||||
|
||||
bzip2 ${dst%.bz2}
|
||||
# tar's "--delete option has been reported to work properly when tar
|
||||
# acts as a filter from stdin to stdout."
|
||||
bzip2 -cd "${src}" | tar --delete "${files[@]}" | bzip2 -c > "${dst}"
|
||||
touch -m -r "${src}" "${dst}"
|
||||
|
@ -1 +1 @@
|
||||
SHA512 (waf-2.0.22.stripped.tar.bz2) = 360bb6509e515ecf5efeb73d10c909abd518223d6d2124f395ffe1de77096d237891a44f92058e86deaa5f84f0aa322e72c1fbd5ed33f74a3d71e3acdc7bbfa7
|
||||
SHA512 (waf-2.0.23.stripped.tar.bz2) = 1d0e34db8e34025ae8eb7480219fe94d523657dcdf547588768a8c0dc2ee486284effec250e0a54619fd21914f24b769a29521500aaf5e5f74b29a4b0dc1c154
|
||||
|
Loading…
Reference in new issue