Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4886)

Unified Diff: chrome/tools/build/mac/keystone_install_test.sh

Issue 506061: Adapt Chrome to use KeystoneRegistration 1.0.7.1306 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/tools/build/mac/keystone_install.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/tools/build/mac/keystone_install_test.sh
===================================================================
--- chrome/tools/build/mac/keystone_install_test.sh (revision 34859)
+++ chrome/tools/build/mac/keystone_install_test.sh (working copy)
@@ -22,6 +22,9 @@
APPNAME="${PRODNAME}.app"
FWKNAME="${PRODNAME} Framework.framework"
+# The version number for fake ksadmin to pretend to be
+KSADMIN_VERSION_LIE="1.0.7.1306"
+
# Temp directory to be used as the disk image (source)
TEMPDIR=$(mktemp -d -t $(basename ${0}))
PATH=$PATH:"${TEMPDIR}"
@@ -72,6 +75,10 @@
defaults write "${DEST}/Contents/Info" KSVersion 0
cat >"${TEMPDIR}"/ksadmin <<EOF
#!/bin/sh
+if [ "\${1}" = "--ksadmin-version" ] ; then
+ echo "${KSADMIN_VERSION_LIE}"
+ exit 0
+fi
if [ -z "\${FAKE_SYSTEM_TICKET}" ] && [ "\${1}" = "-S" ] ; then
echo no system tix! >& 2
exit 1
@@ -93,6 +100,10 @@
defaults write "${RSRCDIR}/Info" KSVersion 0
cat >"${TEMPDIR}"/ksadmin <<EOF
#!/bin/sh
+if [ "\${1}" = "--ksadmin-version" ] ; then
+ echo "${KSADMIN_VERSION_LIE}"
+ exit 0
+fi
if [ -z "\${FAKE_SYSTEM_TICKET}" ] && [ "\${1}" = "-S" ] ; then
echo no system tix! >& 2
exit 1
« no previous file with comments | « chrome/tools/build/mac/keystone_install.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698