#!/bin/sh # This file is maintained at http://git.mdcc.cx/caspar # csp_install - wrapper for install(1), to be used in caspar-ized Makefiles # # usage: csp_install # # honors optionally set environment variable csp_INSTALL_OPTIONS. # use e.g. # export csp_INSTALL_OPTIONS='--owner=www-data --group=www-data' # # Generally, this script is to be used by stating e.g. # # csp_UHOST = dummy # csp_PUSH = $(csp_install_FUNC) # csp_DIR = /etc/ # include caspar/mk/caspar.mk # # in a Makefile : ${csp_INSTALL_MODE:=u=rw,go=r} install --directory $1 exec install --backup=off --preserve-timestamps --mode=$csp_INSTALL_MODE --no-target-directory $csp_INSTALL_OPTIONS $2 $1/$2