Don't use FILESDIR as Gentoo overrides it

This commit is contained in:
Laurence Withers 2008-01-22 22:38:51 +00:00
parent c111c7e1dd
commit 84070431f0
1 changed files with 4 additions and 4 deletions

View File

@ -1,14 +1,14 @@
[ -z "${FILESDIR}" ] && FILESDIR="${PREFIX}/share/@P@/@NAME@" # @TODO@
[ -z "${FILES_INSTALL_DIR}" ] && FILES_INSTALL_DIR="${PREFIX}/share/@P@/@NAME@" # @TODO@
# create destination directories
echo "Installing files into ${FILESDIR}"
build_dir_tree "${FILESDIR}" || return 1
echo "Installing files into ${FILES_INSTALL_DIR}"
build_dir_tree "${FILES_INSTALL_DIR}" || return 1
# copy across the files (note this copies everything with mode 0644).
for file in src/@NAME@/*
do
[ "$(echo $(basename ${file}) | cut -b1-6)" == "build." ] && continue
install_file ${file} ${FILESDIR} 0644 || return 1
install_file ${file} ${FILES_INSTALL_DIR} 0644 || return 1
done
print_success "Files installed"