| # arch/blackfin/boot/install.sh |
| # This file is subject to the terms and conditions of the GNU General Public |
| # License. See the file "COPYING" in the main directory of this archive |
| # Copyright (C) 1995 by Linus Torvalds |
| # Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin |
| # Adapted from code in arch/i386/boot/install.sh by Mike Frysinger |
| # "make install" script for Blackfin architecture |
| # $4 - default install path (blank if root directory) |
| echo " *** Missing file: $1" 1>&2 |
| echo ' *** You need to run "make" before "make install".' 1>&2 |
| # Make sure the files actually exist |
| # User may have a custom install script |
| if [ -x ~/bin/${INSTALLKERNEL} ]; then exec ~/bin/${INSTALLKERNEL} "$@"; fi |
| if which ${INSTALLKERNEL} >/dev/null 2>&1; then |
| exec ${INSTALLKERNEL} "$@" |
| # Default install - same as make zlilo |
| [ -f ${file} ] || return 0 |
| local stamp=$(stat -c %Y ${file} 2>/dev/null) |
| mv ${file} ${file}.${stamp:-old} |