Skip to content

Set of utils intended to work with license related stuff

Notifications You must be signed in to change notification settings

gnusi/CopyrightTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

#!/bin/bash

# 1st arg - file with copyright header
# 2nd arg - files to process (e.g. *.hpp)

if test ${#} -gt 0
then
  COPYRIGHT="$1"
  shift
fi

while test ${#} -gt 0
do
  if ! grep -q Copyright $1
  then
    cat $COPYRIGHT $1 >$1.new && mv $1.new $1
  fi
  shift
done

About

Set of utils intended to work with license related stuff

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages