]> git.saurik.com Git - wxWidgets.git/blobdiff - debian/python-wxgtk-dbg.postinst
return updated wxFONT*_* values
[wxWidgets.git] / debian / python-wxgtk-dbg.postinst
index 173d5e893cfb1b8f5333fbe053635b3dd622d242..4a74affb89036b21764272b98e1ada9a421014dc 100644 (file)
@@ -2,15 +2,20 @@
 
 set -e
 
-WXPYTHONDIR="/=WXPYDIR"
+WXPYTHONDIR="=WXPYDIR"
+PYVERS="=PYVERS"
 
 if [ "$1" = "configure" ]; then
-       =PY /usr/lib/=PY/compileall.py -q ${WXPYTHONDIR}
-       =PY -O /usr/lib/=PY/compileall.py -q ${WXPYTHONDIR}
+    for PY in $PYVERS; do
+       $PY    /usr/lib/$PY/compileall.py -q /usr/lib/$PY/site-pacakges/${WXPYTHONDIR}
+       $PY -O /usr/lib/$PY/compileall.py -q /usr/lib/$PY/site-pacakges/${WXPYTHONDIR}
+    done
 fi
 
-update-alternatives --install /usr/lib/=PY/site-packages/wx.pth  wx.pth        \
-                             /usr/lib/wx/python/wx=V-dbg.pth    $(( =PRIO - 10 ))
+for PY in $PYVERS; do
+    update-alternatives --install /usr/lib/$PY/site-packages/wx.pth  wx.pth    \
+                                 /usr/lib/wx/$PY/wx=V-dbg.pth    $(( =PRIO - 10 ))
+done
 
 #DEBHELPER#