You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
481 B
20 lines
481 B
#! /bin/bash
|
|
|
|
set -euxo pipefail
|
|
|
|
version=2.0.27
|
|
prerel=
|
|
|
|
src=waf-${version}${prerel}.tar.bz2
|
|
dst=${src%.tar.bz2}.stripped.tar.bz2
|
|
|
|
readarray -t files <<-EOF
|
|
waf-${version}/docs/sphinx/_images/waf-64x64.png
|
|
waf-${version}/docs/slides/presentation/gfx/waflogo.svg
|
|
EOF
|
|
|
|
# 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}"
|