python-docutils: Fix scripts after install
This commit is contained in:
15
mingw-w64-python-docutils/docutils2-i686.install
Normal file
15
mingw-w64-python-docutils/docutils2-i686.install
Normal file
@@ -0,0 +1,15 @@
|
||||
post_install() {
|
||||
pushd mingw32 > /dev/null
|
||||
local _prefix=$(pwd -W)
|
||||
popd > /dev/null
|
||||
local _it
|
||||
for _it in rst2html rst2man rst2pseudoxml rst2xml rst2s5 rst2odt rst2xetex rst2latex rst2odt_prepstyles rstpep2html; do
|
||||
sed -e "s|/mingw32|${_prefix}|g" \
|
||||
-i mingw32/bin/${_it}.py \
|
||||
-i mingw32/bin/${_it}
|
||||
done
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
Reference in New Issue
Block a user