summaryrefslogtreecommitdiffstats
path: root/application/palemoon/app/macversion.py
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2019-12-14 14:37:24 -0500
committerMatt A. Tobin <email@mattatobin.com>2019-12-14 14:37:24 -0500
commit4e34c57467a8d38d593c6fbb7c0d63c3257e99f0 (patch)
treeff5ee62f90cebe34f23f734669e2c526d783caf0 /application/palemoon/app/macversion.py
parentdacb3da00bd17e69f1a8f1080668808a5f3fe431 (diff)
downloadUXP-4e34c57467a8d38d593c6fbb7c0d63c3257e99f0.tar
UXP-4e34c57467a8d38d593c6fbb7c0d63c3257e99f0.tar.gz
UXP-4e34c57467a8d38d593c6fbb7c0d63c3257e99f0.tar.lz
UXP-4e34c57467a8d38d593c6fbb7c0d63c3257e99f0.tar.xz
UXP-4e34c57467a8d38d593c6fbb7c0d63c3257e99f0.zip
Remove Pale Moon from the Unified XUL Platform repository
Development will proceed at https://github.com/MoonchildProductions/Pale-Moon
Diffstat (limited to 'application/palemoon/app/macversion.py')
-rw-r--r--application/palemoon/app/macversion.py44
1 files changed, 0 insertions, 44 deletions
diff --git a/application/palemoon/app/macversion.py b/application/palemoon/app/macversion.py
deleted file mode 100644
index 839aac1ff..000000000
--- a/application/palemoon/app/macversion.py
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/python
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-
-from optparse import OptionParser
-import sys
-import re
-
-o = OptionParser()
-o.add_option("--buildid", dest="buildid")
-o.add_option("--version", dest="version")
-
-(options, args) = o.parse_args()
-
-if not options.buildid:
- print >>sys.stderr, "--buildid is required"
- sys.exit(1)
-
-if not options.version:
- print >>sys.stderr, "--version is required"
- sys.exit(1)
-
-# We want to build a version number that matches the format allowed for
-# CFBundleVersion (nnnnn[.nn[.nn]]). We'll incorporate both the version
-# number as well as the date, so that it changes at least daily (for nightly
-# builds), but also so that newly-built older versions (e.g. beta build) aren't
-# considered "newer" than previously-built newer versions (e.g. a trunk nightly)
-
-define, MOZ_BUILDID, buildid = open(options.buildid, 'r').read().split()
-
-# extract only the major version (i.e. "14" from "14.0b1")
-majorVersion = re.match(r'^(\d+)[^\d].*', options.version).group(1)
-# last two digits of the year
-twodigityear = buildid[2:4]
-month = buildid[4:6]
-if month[0] == '0':
- month = month[1]
-day = buildid[6:8]
-if day[0] == '0':
- day = day[1]
-
-print '%s.%s.%s' % (majorVersion + twodigityear, month, day)