summaryrefslogtreecommitdiffstats
path: root/chrome/tools
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-21 21:52:21 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-21 21:52:21 +0000
commit43f0899d89c0ca4697ea51439d1541af16749ff8 (patch)
tree122a3184459d463c1066c04ec9fe3f775c881aa7 /chrome/tools
parent1d8e4ce0743eed37a143d99e568c28abbe3202f1 (diff)
downloadchromium_src-43f0899d89c0ca4697ea51439d1541af16749ff8.zip
chromium_src-43f0899d89c0ca4697ea51439d1541af16749ff8.tar.gz
chromium_src-43f0899d89c0ca4697ea51439d1541af16749ff8.tar.bz2
Remove the now-unused linux/version.sh.
BUG=none TEST=none Review URL: http://codereview.chromium.org/115663 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16670 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools')
-rwxr-xr-xchrome/tools/build/linux/version.sh65
1 files changed, 0 insertions, 65 deletions
diff --git a/chrome/tools/build/linux/version.sh b/chrome/tools/build/linux/version.sh
deleted file mode 100755
index ccaf35c..0000000
--- a/chrome/tools/build/linux/version.sh
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/bin/sh
-#
-# Copyright (c) 2009 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-# TODO(mmoss) This is (mostly) just a conversion to sh syntax of
-# tools/build/win/version.bat. Rewrite both as common python.
-
-TMPL="$1"
-OUTFILE="$2"
-CHROMEDIR=$(readlink -f $(dirname "$0")/../../../)
-
-# Load version digits as environment variables.
-. "$CHROMEDIR/VERSION"
-
-# Load branding strings as environment variables
-DISTRIBUTION="chromium"
-if [ "$CHROMIUM_BUILD" = "_google_chrome" ]; then
- DISTRIBUTION="google_chrome"
-fi
-# Make sure the string values are quoted.
-eval $(sed -e 's/\([^=]*\)=\(.*\)/\1="\2"/' \
- "$CHROMEDIR/app/theme/$DISTRIBUTION/BRANDING")
-
-# Determine the current repository revision number.
-LASTCHANGE=$(svn info 2>/dev/null | grep "Revision:" | cut -d" " -f2-)
-if [ -z "$LASTCHANGE" ]; then
- # Maybe it's a git client
- LASTCHANGE=$(git log | perl -lnwe 'if (s/^\s*git-svn-id:\s+.*\@(\d+)\s[a-f\d\-]+$/$1/) {print; exit; }')
-fi
-
-OFFICIAL_BUILD="false"
-if [ "$CHROME_BUILD_TYPE" = "_official" ]; then
- OFFICIAL_BUILD="true"
-fi
-
-# Write to a temp file and only overwrite the target if it changes, to avoid
-# unnecessary compiles due to timestamp changes.
-TMPFILE=$(mktemp -q -t chromiumver-XXXXXX)
-if [ $? -ne 0 ]; then
- # Oops, just use the target file and suffer possibly unnecessary compile.
- TMPFILE="$OUTFILE"
-fi
-
-# TODO(mmoss) Make sure no sed special chars in substitutions.
-sed -e "s/@MAJOR@/$MAJOR/" \
- -e "s/@MINOR@/$MINOR/" \
- -e "s/@BUILD@/$BUILD/" \
- -e "s/@PATCH@/$PATCH/" \
- -e "s/@COMPANY_FULLNAME@/$COMPANY_FULLNAME/" \
- -e "s/@COMPANY_SHORTNAME@/$COMPANY_SHORTNAME/" \
- -e "s/@PRODUCT_FULLNAME@/$PRODUCT_FULLNAME/" \
- -e "s/@PRODUCT_SHORTNAME@/$PRODUCT_SHORTNAME/" \
- -e "s/@PRODUCT_EXE@/$PRODUCT_EXE/" \
- -e "s/@COPYRIGHT@/$COPYRIGHT/" \
- -e "s/@OFFICIAL_BUILD@/$OFFICIAL_BUILD/" \
- -e "s/@LASTCHANGE@/$LASTCHANGE/" "$TMPL" > "$TMPFILE"
-
-diff -q "$TMPFILE" "$OUTFILE" >/dev/null 2>&1
-if [ $? -ne 0 ]; then
- mv -f "$TMPFILE" "$OUTFILE"
-else
- rm "$TMPFILE"
-fi