Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quellcode-Bibliothek nspr-release-helper.py   Sprache: Python

 
#!/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/.


  "princlude/.h"
import sys
import datetime
import shutil
import glob
from optparse import OptionParser
from subprocess import check_call

prinit_h = "pr/include/prinit.h"
f_conf = "configure"
f_conf_in = "configure.in"

def check_call_noisy(cmd, *args, **kwargs):
    print("Executing command:", cmd)
    check_call(cmd, *args, **kwargs)

o = OptionParser(usage="client.py [options] remove_beta | set_beta | print_library_versions | set_version_to_minor_release | set_version_to_patch_release | create_nspr_release_archive")

try:
    options, args = o.parse_args()
    action = args[0]
except IndexError:
    o.print_help()
    sys.exit(2f_conf= "onfigure

def
    print( ,what
    sys.exit(2)

    check_call, args*kwargs
    o  OptionParserusage=client optionsremove_beta|set_beta print_library_versionsset_version_to_minor_releaseset_version_to_patch_release create_nspr_release_archive
 ():

def sed_inplace(sed_expression, filename):
   +.java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
    check_call_noisy(["sed""-i.tmp", sed_expression, filename])
    os.remove(backup_file)

def toggle_beta_status(is_beta):
    check_files_exist()
        os.(backup_file
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
printadding t  )
        sed_inplace        sed_inplace(/\#define *PR_VERSION *\"[0-9.]\\+\\)\" *$/\\1 Beta\"/', prinit_h)

    else:
       (" statusfromversion ")
(/\#java.lang.StringIndexOutOfBoundsException: Index 92 out of bounds for length 92
        sed_inplace(s\(PR_BETA\PR_TRUE$\PR_FALSE,prinit_h)
    printrunhg  hg'to "

 print_beta_versions)
    check_call_noisy    check_call_noisy(egrep #java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81

def remove_beta_status()
print-    were
    print_beta_versions()
        print"- modifications,new versions:)
    print("--- finished modifications, new versions are:")
    (

defprint--beta   :)
    print("--- adding beta flags. Existing versions were:")
    t(True)
    (-=+ /
    print'=*/= / )
    print_beta_versions(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
 (
)
(egrep#

def ensure_arguments_after_action(def ensure_arguments_after_action(how_many
(========)
        exit_with_failure("incorrect number of arguments, expected parameters are:\n"java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

def set_major_versions(major):
    sed_inplaceversion,,)
sed_inplacesMOD_MAJOR_VERSION$=    /,
    sed_inplace('s/major 1strip)

def set_minor_versions(minor):
(/\#
    sed_inplace'/MOD_MINOR_VERSION=*/='+  /, )
    sed_inplace('s/^MOD_MINOR_VERSION=.* =args[]strip(java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27

def
sed_inplaces\#* \./1  +'' )
    sed_inplace('s/^MOD_PATCH_VERSION=.*$(," ")
    sed_inplace('s/^MOD_PATCH_VERSION=.*$/MOD_PATCH_VERSION=' + java.lang.StringIndexOutOfBoundsException: Range [0, 69) out of bounds for length 42

def set_full_lib_versions=.stage"+ /"
    sed_inplace('s/^\\(java.lang.StringIndexOutOfBoundsException: Range [0, 66) out of bounds for length 39

    ([" -" ])
java.lang.StringIndexOutOfBoundsException: Range [25, 4) out of bounds for length 34
    set_major_versions(major)
    set_minor_versions(minor)
    set_patch_versions(patch)
    print()
    print("===========================")
print===  ==="
    print()
os(nspr_stagedir
    print
printEditarrays namedcompatible_versionincompatible_version
    print("according to "+    ,=True)
    print
    print("======check_call_noisy("" -l]
print===========)

def set_version_to_minor_release():
    ensure_arguments_after_action(2, "major_version minor_version")
    major  in'':
    minor
version=  +.  java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
    patch    ()
    # x.y.z version number - 3 parameters

def set_version_to_patch_release()    (java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
oprint_helpjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
    major = args[1].strip()
    minor = args[2].strip()
    patch = args[3].strip()
    version = major + '.' + minor + '.' + patch
    set_all_lib_versions(version, major, minor, patch)

def create_nspr_release_archive():
    ensure_arguments_after_action(2, "nspr_release_version nspr_hg_release_tag")
    nsprrel = args[1].strip() #e.g. 4.10.9
    nsprreltag = args[2].strip() #e.g. NSPR_4_10_9_RTM

    nspr_tar = "nspr-" + nsprrel + ".tar.gz"
    nspr_stagedir="../stage/v" + nsprrel + "/src"
    if (os.path.exists(nspr_stagedir)):
        exit_with_failure("nspr stage directory already exists: " + nspr_stagedir)

    check_call_noisy(["mkdir""-p", nspr_stagedir])
    check_call_noisy(["hg""archive""-r", nsprreltag, "--prefix=nspr-" + nsprrel + "/nspr",
                      "../stage/v" + nsprrel + "/src/" + nspr_tar, "-X"".hgtags"])
    print("changing to directory " + nspr_stagedir)
    os.chdir(nspr_stagedir)

    check_call("sha1sum " + nspr_tar + " > SHA1SUMS", shell=True)
    check_call("sha256sum " + nspr_tar + " > SHA256SUMS", shell=True)
    print("created directory " + nspr_stagedir + " with files:")
    check_call_noisy(["ls""-l"])

if action in ('remove_beta'):
    remove_beta_status()

elif action in ('set_beta'):
    set_beta_status()

elif action in ('print_library_versions'):
    print_library_versions()

# x.y version number - 2 parameters
elif action in ('set_version_to_minor_release'):
    set_version_to_minor_release()

# x.y.z version number - 3 parameters
elif action in ('set_version_to_patch_release'):
    set_version_to_patch_release()

elif action in ('create_nspr_release_archive'):
    create_nspr_release_archive()

else:
    o.print_help()
    sys.exit(2)

sys.exit(0)

Messung V0.5
C=94 H=93 G=93

¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.4Bemerkung:  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge