[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] First crack at version checking for OSX installer.



Update of /home/or/cvsroot/tor/contrib/osx
In directory moria:/tmp/cvs-serv522

Modified Files:
	TorBundleInfo.plist.in package.sh 
Log Message:
First crack at version checking for OSX installer.


Index: TorBundleInfo.plist.in
===================================================================
RCS file: /home/or/cvsroot/tor/contrib/osx/TorBundleInfo.plist.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -d -r1.3 -r1.4
--- TorBundleInfo.plist.in	5 Jan 2005 19:45:28 -0000	1.3
+++ TorBundleInfo.plist.in	20 Jun 2006 04:16:46 -0000	1.4
@@ -12,6 +12,21 @@
 	<string>@VERSION@</string>
 	<key>IFPkgFlagComponentDirectory</key>
 	<string>../.contained_packages</string>
+	<key>IFRequirementDicts</key>
+	<array>
+		<dict>
+		        <key>SpecType</key>
+			<string>plist</string>
+			<key>SpecArgument</key>
+			<string>/System/Library/CoreServices/SystemVersion.plist</string>
+			<key>SpecProperty</key>
+			<string>ProductVersion</string>
+			<key>TestOperator</key>
+			<string>=</string>
+			<key>TestObject</key>
+			<string>OSVER</string>
+		</dict>
+	</array>
 	<key>IFPkgFlagPackageList</key>
 	<array>
 		<dict>

Index: package.sh
===================================================================
RCS file: /home/or/cvsroot/tor/contrib/osx/package.sh,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -p -d -r1.20 -r1.21
--- package.sh	10 Apr 2006 07:05:20 -0000	1.20
+++ package.sh	20 Jun 2006 04:16:46 -0000	1.21
@@ -93,10 +93,10 @@ EOF
 DOC=$BUILD_DIR/tor_resources/documents
 mkdir $DOC
 mkdir $DOC/howto
-cp doc/website/stylesheet.css doc/website/tor-doc-osx.html.* $DOC/howto
-cp doc/website/tor-doc-server.html.* $DOC/howto
-cp doc/website/tor-hidden-service.html.* $DOC/howto
-cp doc/website/tor-switchproxy.html.* $DOC/howto
+#cp doc/website/stylesheet.css doc/website/tor-doc-osx.html.* $DOC/howto
+#cp doc/website/tor-doc-server.html.* $DOC/howto
+#cp doc/website/tor-hidden-service.html.* $DOC/howto
+#cp doc/website/tor-switchproxy.html.* $DOC/howto
 #mkdir $DOC/img
 #cp doc/img/screenshot-osx* $DOC/img
 cp AUTHORS $DOC/AUTHORS.txt
@@ -149,7 +149,7 @@ mkdir -p "$MPKG/Contents/Resources"
 echo -n "pmkrpkg1" > "$MPKG/Contents/PkgInfo"
 cp contrib/osx/ReadMe.rtf "$MPKG/Contents/Resources"
 #cp contrib/osx/License.rtf "$MPKG/Contents/Resources"
-cp contrib/osx/TorBundleInfo.plist "$MPKG/Contents/Info.plist"
+sed -E -e "s/OSVER/$OSVER/" contrib/osx/TorBundleInfo.plist > "$MPKG/Contents/Info.plist"
 cp contrib/osx/TorBundleWelcome.rtf "$MPKG/Contents/Resources/Welcome.rtf"
 cp contrib/osx/TorBundleDesc.plist "$MPKG/Contents/Resources/Description.plist"
 cp contrib/osx/tor_logo.gif "$MPKG/Contents/Resources/background.gif"