Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for fn (0.15 sec)

  1. common/scripts/fix_copyright_banner.sh

    set -e
    
    WD=$(dirname "$0")
    WD=$(cd "$WD"; pwd)
    
    for fn in "$@"; do
      if ! grep -L -q -e "Apache License, Version 2" -e "Copyright" "${fn}"; then
        if [[ "${fn}" == *.go || "${fn}" == *.rs ]]; then
          newfile=$(cat "${WD}/copyright-banner-go.txt" "${fn}")
          echo "${newfile}" > "${fn}"
          echo "Fixing license: ${fn}"
        else
          echo "Cannot fix license: ${fn}. Unknown file type"
        fi
      fi
    Shell Script
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Nov 17 04:35:57 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  2. common/scripts/lint_copyright_banner.sh

    # limitations under the License.
    
    set -e
    
    ec=0
    for fn in "$@"; do
      if ! grep -L -q -e "Apache License, Version 2" "${fn}"; then
        echo "Missing license: ${fn}"
        ec=1
      fi
    
      if ! grep -L -q -e "Copyright" "${fn}"; then
        echo "Missing copyright: ${fn}"
        ec=1
      fi
    done
    
    Shell Script
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Sep 11 23:32:21 GMT 2019
    - 1.2K bytes
    - Viewed (0)
Back to top