Update of /cvsroot/fink/scripts/installer In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27992
Modified Files: buildpkg.sh Added Files: Info.plist.in Removed Files: Info.plist Log Message: Automatically insert version into Info.plist (use Info.plist.in template) --- Info.plist DELETED --- --- NEW FILE: Info.plist.in --- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>IFPkgFlagAuthorizationAction</key> <string>RootAuthorization</string> <key>IFPkgFlagDefaultLocation</key> <string>/</string> <key>IFPkgFlagInstallFat</key> <false/> <key>IFPkgFlagIsRequired</key> <false/> <key>IFPkgFlagOverwritePermissions</key> <false/> <key>IFPkgFlagRelocatable</key> <false/> <key>IFPkgFlagRestartAction</key> <string>NoRestart</string> <key>IFPkgFlagRootVolumeOnly</key> <false/> <key>IFPkgFormatVersion</key> <real>0.10000000149011612</real> </dict> </plist> Index: buildpkg.sh =================================================================== RCS file: /cvsroot/fink/scripts/installer/buildpkg.sh,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- buildpkg.sh 2 Jun 2005 22:45:41 -0000 1.24 +++ buildpkg.sh 3 Jun 2005 18:25:58 -0000 1.25 @@ -65,6 +65,14 @@ # Substitute the version for IN_VERSION where appropriate perl -pi -e "s/IN_VERSION/$IN_VERSION/g" $RESDIR/ReadMe.rtf $RESDIR/Welcome.rtf $RESDIR/*.lproj/Description.plist $DMGDIR/Fink\ ReadMe.rtf +# Prepare Info.plist for this specific .pkg +cp $IN_BASEDIR/Info.plist.in $IN_BASEDIR/Info.plist +read IN_VERSION_MAJOR IN_VERSION_MINOR <<EOCMD + $(IFS=.; echo $IN_VERSION) +EOCMD +defaults write $IN_BASEDIR/Info.plist IFMajorVersion $IN_VERSION_MAJOR +defaults write $IN_BASEDIR/Info.plist IFMinorVersion $IN_VERSION_MINOR + # Add "missing" language directories to work around a bug in Installer.app for lang in Dutch French German Italian Japanese Spanish da fi ko no pt sv zh_CN zh_TW; do if test ! -d $RESDIR/${lang}.lproj ; then @@ -75,7 +83,6 @@ echo "running PackageMaker..."; /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker -build -p "$DMGDIR/Fink $IN_VERSION Installer.pkg" -f $CONDIR -r $RESDIR -i $IN_BASEDIR/Info.plist -d $RESDIR/English.lproj/Description.plist -#defaults write "$DMGDIR/Fink $IN_VERSION Installer.pkg/Contents/Info.plist" IFPkgFlagAuthorizationAction RootAuthorization `find $DMGDIR -name 'CVS' -type d -exec rm -rf {} \; 2>> /dev/null` chmod -R a+rX $DMGDIR ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-commits