Blame Scripts/Functions/Tuneup/Backends/Shell/shell.sh
|
|
c0ee12 |
#!/bin/bash
|
|
|
c0ee12 |
#
|
|
|
0e64a7 |
# shell.sh -- This function standardizes maintainance tasks for Shell
|
|
|
0e64a7 |
# script files.
|
|
|
c0ee12 |
#
|
|
|
3b0984 |
# Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG
|
|
|
fa95b1 |
#
|
|
|
fa95b1 |
# This program is free software; you can redistribute it and/or modify
|
|
|
fa95b1 |
# it under the terms of the GNU General Public License as published by
|
|
|
dcd347 |
# the Free Software Foundation; either version 2 of the License, or (at
|
|
|
dcd347 |
# your option) any later version.
|
|
|
fa95b1 |
#
|
|
|
74a058 |
# This program is distributed in the hope that it will be useful, but
|
|
|
74a058 |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
c0ee12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
c0ee12 |
# General Public License for more details.
|
|
|
c0ee12 |
#
|
|
|
c0ee12 |
# You should have received a copy of the GNU General Public License
|
|
|
c0ee12 |
# along with this program; if not, write to the Free Software
|
|
|
dcd347 |
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
7ac5a5 |
#
|
|
|
c0ee12 |
# ----------------------------------------------------------------------
|
|
|
c0ee12 |
# $Id$
|
|
|
c0ee12 |
# ----------------------------------------------------------------------
|
|
|
c0ee12 |
|
|
|
0e64a7 |
function shell {
|
|
|
0e64a7 |
|
|
|
0e64a7 |
# Define backend-specific configuration directory.
|
|
|
0e64a7 |
TUNEUP_BACKEND_CONFIG="${TUNEUP_BACKEND_DIR}/$(cli_getRepoName ${TUNEUP_BACKEND} -d)/Config"
|
|
|
be7de3 |
|
|
|
be7de3 |
# Rebuild top comment inside shell scripts, mainly to update
|
|
|
be7de3 |
# copyright information.
|
|
|
0e64a7 |
shell_doTopComment
|
|
|
c0ee12 |
|
|
|
c0ee12 |
}
|