defDstPath="/projects/wx/wxPython/dist"
pkgName="MachoPython"
-version=2.2.1-2
+version=2.2.1-4
dmgRoot="dmg-root"
pkgRoot="pkg-root"
sitePkgDir="$pkgRoot/Library/Frameworks/Python.framework/Versions/$PYVER/lib/python$PYVER/site-packages"
cat > pythonw <<EOF
#!/bin/sh
-exec /Applicaitons/Python.app/Contents/MacOS/python $@
+exec /Applications/Python.app/Contents/MacOS/python \$@
EOF
chmod +x pythonw
cd $curDir
done
cd $curDir
+#-----------------------------------
+msg Adjusting ownership and permission
+
+for d in Applications Library; do
+ msgdo chown -R root:admin "$dstPath/$temp/$pkgRoot/$d"
+ msgdo chmod -R g+w "$dstPath/$temp/$pkgRoot/$d"
+done
+msgdo chown -R root:wheel "$dstPath/$temp/$pkgRoot/usr"
+
#-----------------------------------
msg making installer package
msgdo cp -pR "$progDir/resourcesPython" "$dstPath/$temp/"