Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1747291447, "reponame":"openssl", "desc":"OpenSSL", "owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://warmcat.com/repo/openssl", "f":3, "items": [ {"schema":"libjg2-1", "cid":"77e3f041cb8595db932d737dbb411e48", "oid":{ "oid": "08fb832377cd90c08a2d233b3230b95a9b9f6e24", "alias": []},"blobname": "util/openssl-update-copyright", "blob": "#!/usr/bin/env bash\n#\n# Copyright 2018 The OpenSSL Project Authors. All Rights Reserved.\n#\n# Licensed under the OpenSSL license (the \u0022License\u0022). You may not use\n# this file except in compliance with the License. You can obtain a copy\n# in the file LICENSE in the source distribution or at\n# https://www.openssl.org/source/license.html\n\n\nmyname\u003d\u0022$(basename $0)\u0022\n\nthis_year\u003d\u0022$(date '+%Y')\u0022\nsome_year\u003d\u0022[12][0-9][0-9][0-9]\u0022\nyear_range\u003d\u0022(${some_year})(-${some_year})?\u0022\n\ncopyright_owner\u003d\u0022The OpenSSL Project\u0022\ncopyright\u003d\u0022Copyright .*${year_range} .*${copyright_owner}\u0022\n\n# sed_script:\n# for all lines that contain ${copyright} : {\n# replace years yyyy-zzzz (or year yyyy) by yyyy-${this_year}\n# replace repeated years yyyy-yyyy by yyyy\n# }\nsed_script\u003d\u0022/${copyright}/{ s/${year_range}/\u005c1-${this_year}/ ; s/(${some_year})-\u005c1/\u005c1/ }\u0022\n\nfunction usage() {\n\tcat \u003e\u00262 \u003c\u003cEOF\nusage: $myname [-h|--help] [file|directory] ...\n\nUpdates the year ranges of all OpenSSL copyright statements in the given\nfiles or directories. (Directories are traversed recursively.)\nEOF\n}\n\nif [ $# -eq 0 ]; then\n\tusage\n\texit 0\nfi\n\n\nfor arg in \u0022$@\u0022; do\n\tcase $arg in\n\t\t-h|--help)\n\t\t\tusage\n\t\t\texit 0\n\t\t\t;;\n\t\t-*)\n\t\t\techo -e \u0022illegal option: $arg\u005cn\u0022 \u003e\u0026 2\n\t\t\tusage\n\t\t\texit 1\n\t\t\t;;\n\t\t*)\n\t\t\tif [ -f \u0022$arg\u0022 ]; then\n\t\t\t\tsed -E -i \u0022${sed_script}\u0022 \u0022$arg\u0022\n\t\t\telif [ -d \u0022$arg\u0022 ]; then\n\t\t\t\tfind \u0022$arg\u0022 -name '.[a-z]*' -prune -o -type f -exec sed -E -i \u0022${sed_script}\u0022 {} +\n\t\t\telse\n\t\t\t\techo \u0022$arg: no such file or directory\u0022 \u003e\u00262\n\t\t\tfi\n\t\t\t;;\n\tesac\ndone\n","s":{"c":1747291447,"u": 155}} ],"g": 1521,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 1, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}