diff options
author | binji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-18 22:28:05 +0000 |
---|---|---|
committer | binji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-18 22:28:05 +0000 |
commit | 5efa40b21b8d79478bc824004e137cd670feae32 (patch) | |
tree | f93958fb5447a965c591ed2bdb1194bbafe442a1 /native_client_sdk | |
parent | e897bd6c7bb533f62ed909fdb1499176dafb1683 (diff) | |
download | chromium_src-5efa40b21b8d79478bc824004e137cd670feae32.zip chromium_src-5efa40b21b8d79478bc824004e137cd670feae32.tar.gz chromium_src-5efa40b21b8d79478bc824004e137cd670feae32.tar.bz2 |
[NaCl SDK] Fix README file in SDK.
The previous README had placeholders for the VERSION, REVISION, and DATE.
It also incorrectly pointed to the NativeClientSDK repository on code.google.com
BUG=none
TEST=none
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/10696213
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147322 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk')
-rw-r--r-- | native_client_sdk/src/README | 7 | ||||
-rwxr-xr-x | native_client_sdk/src/build_tools/build_sdk.py | 14 |
2 files changed, 16 insertions, 5 deletions
diff --git a/native_client_sdk/src/README b/native_client_sdk/src/README index 8c32d1f..c85406f 100644 --- a/native_client_sdk/src/README +++ b/native_client_sdk/src/README @@ -11,11 +11,10 @@ Please refer to the online documentation here: OTHER DEVELOPMENT -If you want to contribute to the Native Client SDK itself, the code site is -here: - - http://code.google.com/p/nativeclient-sdk/ +If you want to contribute to the Native Client SDK itself, please read the +online documentation on contributing code to Chromium here: + http://www.chromium.org/developers/contributing-code KNOWN ISSUES diff --git a/native_client_sdk/src/build_tools/build_sdk.py b/native_client_sdk/src/build_tools/build_sdk.py index c6907b1..bc8de75 100755 --- a/native_client_sdk/src/build_tools/build_sdk.py +++ b/native_client_sdk/src/build_tools/build_sdk.py @@ -18,6 +18,7 @@ and whether it should upload an SDK to file storage (GSTORE) # std python includes import copy +import datetime import generate_make import optparse import os @@ -544,10 +545,21 @@ def main(args): if not skip_build: buildbot_common.BuildStep('Add Text Files') - files = ['AUTHORS', 'COPYING', 'LICENSE', 'NOTICE', 'README'] + files = ['AUTHORS', 'COPYING', 'LICENSE', 'NOTICE'] files = [os.path.join(SDK_SRC_DIR, filename) for filename in files] oshelpers.Copy(['-v'] + files + [pepperdir]) + # Replace a few placeholders in README + readme_text = open(os.path.join(SDK_SRC_DIR, 'README'), 'rt').read() + readme_text = readme_text.replace('${VERSION}', pepper_ver) + readme_text = readme_text.replace('${REVISION}', clnumber) + + # Year/Month/Day Hour:Minute:Second + time_format = '%Y/%m/%d %H:%M:%S' + readme_text = readme_text.replace('${DATE}', + datetime.datetime.now().strftime(time_format)) + + open(os.path.join(pepperdir, 'README'), 'wt').write(readme_text) # Clean out the temporary toolchain untar directory if not skip_untar: |