Update copyright dates and add INSTALL_PREFIX

This commit is contained in:
Laurence Withers 2007-02-05 12:51:38 +00:00
parent 996fcd8481
commit 7ce30bf7bd
4 changed files with 11 additions and 11 deletions

View File

@ -1,6 +1,6 @@
@P@
========================================================================
(c)2006, @AUTHOR@, <@EMAIL@>.
(c)2007, @AUTHOR@, <@EMAIL@>.
Released under the GNU GPLv2. See file COPYING or
http://www.gnu.org/copyleft/gpl.html for details.

View File

@ -2,7 +2,7 @@
# kate: @KATE_MODELINE@
# vim: @VIM_MODELINE@
#
# (c)2006, @AUTHOR@, <@EMAIL@>.
# (c)2007, @AUTHOR@, <@EMAIL@>.
# Released under the GNU GPLv2. See file COPYING or
# http://www.gnu.org/copyleft/gpl.html for details.
#

View File

@ -1,7 +1,7 @@
#!/bin/bash
# @P@/make.sh
#
# (c)2006, @AUTHOR@, <@EMAIL@>.
# (c)2006-2007, @AUTHOR@, <@EMAIL@>.
# Released under the GNU GPLv2. See file COPYING or
# http://www.gnu.org/copyleft/gpl.html for details.
#
@ -155,7 +155,7 @@ build_dir_tree() {
return 1
fi
local DIR="$1"
local DIR="${INSTALL_PREFIX}$1"
# if the directory already exists, return success
[ -d "${DIR}" ] && return 0
@ -193,8 +193,8 @@ build_dir_tree() {
# second is the destination. The third is the octal mode.
install_file() {
# figure out if $2 is a directory or not
DEST_FILE="$2"
[ -d "$2" ] && DEST_FILE="$2/$(basename $1)"
DEST_FILE="${INSTALL_PREFIX}$2"
[ -d "$2" ] && DEST_FILE="${INSTALL_PREFIX}$2/$(basename $1)"
echo " Installing: '$1' -> '$2'"
do_cmd cp -fP "$1" "${DEST_FILE}" || return 1
@ -208,8 +208,8 @@ install_file() {
# This will install a header file. It is basically similar to
# install_file(), only we strip out the #line directives.
install_header() {
DEST_FILE="$2"
[ -d "$2" ] && DEST_FILE="$2/$(basename $1)"
DEST_FILE="${INSTALL_PREFIX}$2"
[ -d "$2" ] && DEST_FILE="${INSTALL_PREFIX}$2/$(basename $1)"
echo " Installing header: '$1' -> '$2'"
do_cmd rm -f ${DEST_FILE} || exit 1
@ -225,9 +225,9 @@ install_header() {
# second the symlink's source filename, and the third is the directory
# in which to create the symlink.
install_symlink() {
echo " Installing symlink: '$3/$2' -> '$1'"
echo " Installing symlink: '$3/$2' -> '${INSTALL_PREFIX}$1'"
( do_cmd cd $3; ln -sf $2 $1 ) || return 1
( do_cmd cd $3; ln -sf $2 ${INSTALL_PREFIX}$1 ) || return 1
return 0
}

View File

@ -1,6 +1,6 @@
# @P@/version
#
# (c)2006, @AUTHOR@, <@EMAIL@>.
# (c)2007, @AUTHOR@, <@EMAIL@>.
# Released under the GNU GPLv2. See file COPYING or
# http://www.gnu.org/copyleft/gpl.html for details.
#