Blame Scripts/Bash/Styles/Tpl/sh-topcomment.sed

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