| 1 |
#!/bin/sh |
| 2 |
set -eux |
| 3 |
version=$(dpkg-parsechangelog -SVersion | sed -E 's/(\+dfsg)?-.*//') |
| 4 |
url=$(curl https://pypi.org/simple/pydata-sphinx-theme/ | grep -Eo "https://files\.pythonhosted\.org/packages/[0-9a-f/]+/pydata_sphinx_theme-${version}-py3-none-any\.whl") |
| 5 |
destdir=$(dirname "$0") |
| 6 |
curl -v "${url}" | bsdtar -xf - -C "${destdir}" --strip-components 4 \ |
| 7 |
pydata_sphinx_theme/theme/pydata_sphinx_theme/static/styles/pydata-sphinx-theme.css \ |
| 8 |
pydata_sphinx_theme/theme/pydata_sphinx_theme/static/styles/pydata-sphinx-theme.css.map |
| 9 |
echo "${version}" > "${destdir}/version" |