Blame Scripts/Bash/Functions/Shell/Config/tpl_forCopyright.sed

4fac24
# This file standardizes the look and feel of top comments used by
4fac24
# scripts inside CentOS Artwork Repository. It contains the copyright
4fac24
# note and the license under which the script is released.  This files
4fac24
# is used with the regular expression '.*\.sh$' only.
4fac24
# ---------------------------------------------------
719dfa
# $Id$
4fac24
# ---------------------------------------------------
4fac24
/^# +Copyright .*$/a\
9f5f2e
# Copyright (C) =YEAR1=-=YEAR2= =FULLNAME=\
4fac24
# \
4fac24
# This program is free software; you can redistribute it and/or\
4fac24
# modify it under the terms of the GNU General Public License as\
4fac24
# published by the Free Software Foundation; either version 2 of the\
4fac24
# License, or (at your option) any later version.\
4fac24
# \
4fac24
# This program is distributed in the hope that it will be useful, but\
4fac24
# WITHOUT ANY WARRANTY; without even the implied warranty of\
4fac24
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\
4fac24
# General Public License for more details.\
4fac24
#\
4fac24
# You should have received a copy of the GNU General Public License\
4fac24
# along with this program; if not, write to the Free Software\
4fac24
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307\
4fac24
# USA.\
4fac24
# \
7cea45
# ----------------------------------------------------------------------
4fac24
4fac24
# Remove previous comments.
7cea45
/^# +Copyright .*$/,/^# -+$/{
4fac24
d
4fac24
}
4fac24
4fac24
# Remove more than one space after comments.
4fac24
s/^# +/# /
4fac24
4fac24
# Define first line
4fac24
1c\
4fac24
#!/bin/bash