diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2017-12-04 20:21:13 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2017-12-04 20:23:42 +0000 |
commit | b7b9af2316e802f3f0d53a8951415ae70c6034f1 (patch) | |
tree | 259be56390edfdc1001b3f7ac9265f5a8c4748bc /subr | |
parent | bf25367a594bdd09f9d9545f557abfedade8f4d3 (diff) | |
download | midipix_build-b7b9af2316e802f3f0d53a8951415ae70c6034f1.tar.bz2 midipix_build-b7b9af2316e802f3f0d53a8951415ae70c6034f1.tar.xz |
vars/build.vars: replaces dist_minipix_{libs,links} w/ dist_minipix.
vars/dist_minipix.vars: install binaries, libraries, and terminfo into ${PREFIX}/minipix_dist/bin.
subr/ex_rtl_fileop.subr: adds cp_follow.
Diffstat (limited to 'subr')
-rw-r--r-- | subr/ex_rtl_fileop.subr | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/subr/ex_rtl_fileop.subr b/subr/ex_rtl_fileop.subr index 62457835..e99ee773 100644 --- a/subr/ex_rtl_fileop.subr +++ b/subr/ex_rtl_fileop.subr @@ -19,6 +19,16 @@ ex_rtl_fileop() { exp_rtl_fileop_check "${PREFIX}" "${1}"; cd -- "${1}"; fi; ;; + cp_follow) + if [ ${#} -lt 2 ]; then + ex_rtl_log_msg failexit "Missing parameters (in: cp_follow ${*}.)"; + else + _src="${*}"; _src="${_src% *}"; + _dst="${*}"; _dst="${_dst##* }"; + ex_rtl_log_msg vvvo "Copying \`${_src}' into \`${_dst}' w/ -pLR."; + exp_rtl_fileop_check "${PREFIX}" "${*}"; + cp -pLR -- "${@}"; + fi; ;; cp) if [ ${#} -lt 2 ]; then ex_rtl_log_msg failexit "Missing parameters (in: cp ${*}.)"; else |