diff --git a/change_level.py b/change_level.py deleted file mode 100755 index 51a850bc..00000000 --- a/change_level.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -import json - - -if __name__ == '__main__': - if len(sys.argv[1:]) < 3: - print "Usage: ./change_level.py " - sys.exit(1) - - app_list_name, app_id, level = sys.argv[1:4] - - if not os.path.exists(app_list_name): - print "Error: the file '%s' doesn't exist" % app_list_name - sys.exit(1) - - app_list = json.load(open(app_list_name)) - - if app_id not in app_list: - print "Error: app '%s' is not present in %s" % (app_id, app_list_name) - sys.exit(1) - - if not level.isdigit(): - print "Error: app level must be a number, it's '%s'" % level - sys.exit(1) - - if not 0 <= int(level) <= 10: - print "Error: app level must be between 0 and 10, it's '%s'" % level - sys.exit(1) - - if app_list[app_id]["state"] == "working": - app_list[app_id]["level"] = int(level) - elif "level" in app_list[app_id]: - print "Warning: app '%s' is currently not marked as working, the level is removed" % app_id - del app_list[app_id]["level"] - - open(app_list_name, "w").write("\n".join(json.dumps(app_list, indent=4, sort_keys=True).split(" \n")) + "\n") diff --git a/get_packager_email_addresses.sh b/get_packager_email_addresses.sh deleted file mode 100755 index 1d83bfbf..00000000 --- a/get_packager_email_addresses.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/bash - -if [ ! $1 ] || [ $1 = "-h" ] || [ $1 = "--help" ]; then -echo "Specify builds apps list as parameters" ; exit -fi - -pattern="\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b" - -# Grep email addresses from builds apps lists arguments -grep -E -o $pattern $* | \ - -# Eclude example addresses -grep -v jon@doe.net | grep -vi domain | grep -v johndoe@example.com | \ - -# Remove file name when there is more than two arguments, sort, remove duplicate -cut -d : -f 2 | sort | uniq # | wc -l - -# Get number of packagers: uncomment upper line