|
|
be7de3 |
#!/bin/sed
|
|
|
be7de3 |
#
|
|
|
be7de3 |
# shell_topcomment.sed -- This file standardizes the top comment
|
|
|
be7de3 |
# inside centos-art.sh scripts.
|
|
|
be7de3 |
#
|
|
|
be7de3 |
# Copyright (C) 2009-2011 Alain Reguera Delgado
|
|
|
be7de3 |
#
|
|
|
be7de3 |
# This program is free software; you can redistribute it and/or modify
|
|
|
be7de3 |
# it under the terms of the GNU General Public License as published by
|
|
|
be7de3 |
# the Free Software Foundation; either version 2 of the License, or
|
|
|
be7de3 |
# (at your option) any later version.
|
|
|
be7de3 |
#
|
|
|
be7de3 |
# This program is distributed in the hope that it will be useful, but
|
|
|
be7de3 |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
be7de3 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
be7de3 |
# General Public License for more details.
|
|
|
be7de3 |
#
|
|
|
be7de3 |
# You should have received a copy of the GNU General Public License
|
|
|
be7de3 |
# along with this program; if not, write to the Free Software
|
|
|
be7de3 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
be7de3 |
# USA.
|
|
|
c739b4 |
#
|
|
|
be7de3 |
# ----------------------------------------------------------------------
|
|
|
be7de3 |
# $Id$
|
|
|
be7de3 |
# ----------------------------------------------------------------------
|
|
|
be7de3 |
/^# +Copyright .*$/a\
|
|
|
c739b4 |
# Copyright (C) 2009-=COPYRIGHT_YEAR= =COPYRIGHT_HOLDER=\
|
|
|
be7de3 |
#\
|
|
|
be7de3 |
# This program is free software; you can redistribute it and/or modify\
|
|
|
be7de3 |
# it under the terms of the GNU General Public License as published by\
|
|
|
64ce97 |
# the Free Software Foundation; either version 2 of the License, or (at\
|
|
|
64ce97 |
# your option) any later version.\
|
|
|
be7de3 |
#\
|
|
|
3f0d09 |
# This program is distributed in the hope that it will be useful, but\
|
|
|
3f0d09 |
# WITHOUT ANY WARRANTY; without even the implied warranty of\
|
|
|
be7de3 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\
|
|
|
be7de3 |
# General Public License for more details.\
|
|
|
be7de3 |
#\
|
|
|
be7de3 |
# You should have received a copy of the GNU General Public License\
|
|
|
be7de3 |
# along with this program; if not, write to the Free Software\
|
|
|
64ce97 |
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\
|
|
|
c739b4 |
#\
|
|
|
be7de3 |
# ----------------------------------------------------------------------
|
|
|
be7de3 |
|
|
|
be7de3 |
# Remove previous copyright notice, just to be sure the one above be
|
|
|
be7de3 |
# used always.
|
|
|
be7de3 |
/^# +Copyright .*$/,/^# -{70}$/{
|
|
|
be7de3 |
d
|
|
|
be7de3 |
}
|
|
|
be7de3 |
|
|
|
be7de3 |
# Remove more than one space after comments.
|
|
|
be7de3 |
s/^# +/# /
|
|
|
be7de3 |
|
|
|
be7de3 |
# Define script first line.
|
|
|
be7de3 |
1c\
|
|
|
be7de3 |
#!/bin/bash
|