diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-11-15 23:49:18 +0100 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-11-16 00:55:35 +0100 |
commit | 5ee71e1fa68e872833e71d770b1065a5592ed738 (patch) | |
tree | 0b1ec766f31bcaaccd0ca02dc61ed44cf8e1e304 /subr | |
parent | a5bb1c0e2bc5b880aa94d3976c0a3a14c4e279c7 (diff) | |
download | midipix_build-5ee71e1fa68e872833e71d770b1065a5592ed738.tar.bz2 midipix_build-5ee71e1fa68e872833e71d770b1065a5592ed738.tar.xz |
build.sh: copy etc/ files after a successful build.
Diffstat (limited to 'subr')
-rw-r--r-- | subr/build.subr | 6 | ||||
-rw-r--r-- | subr/tarballs.subr | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/subr/build.subr b/subr/build.subr index 98bd4555..2a9f80fa 100644 --- a/subr/build.subr +++ b/subr/build.subr @@ -63,6 +63,12 @@ clean_prefix() { fi; }; +copy_etc() { + tar -C etc -cpf - midipix_check.sh midipix.sh README midipix_shortcut.vbs |\ + tar -C ${PREFIX} -xpf -; + chmod +x ${PREFIX}/midipix.sh; +}; + create_dirs() { insecure_mkdir ${PREFIX} ${PREFIX_NATIVE} ${PREFIX_CROSS} ${PREFIX_TARGET}/lib ${DLCACHEDIR} ${WORKDIR}; for __ in ${PREFIX}/usr ${PREFIX_NATIVE}/usr; do diff --git a/subr/tarballs.subr b/subr/tarballs.subr index 7bde6642..abcbad07 100644 --- a/subr/tarballs.subr +++ b/subr/tarballs.subr @@ -20,7 +20,7 @@ do_tarball_dist() { tar -cpf - $(find . -maxdepth 2 -mindepth 1 -type d \ -not -path ./native -not -path ./native/lib.bak \ -not -path ./tmp -not -path ./tmp/\*) \ - etc/midipix_shortcut.vbs etc/midipix.sh etc/README |\ + midipix_shortcut.vbs midipix.sh README |\ ${TARBALL_COMPRESS_CMD} ${TARBALL_COMPRESS_ARGS} -c > ${TARBALL_FNAME}; log_msg info "Finished building binary distribution tarball."; if [ -x "$(which gpg 2>/dev/null)" -a -n "${TARBALL_SIGN_GPG_KEY}" ] &&\ @@ -49,7 +49,7 @@ do_tarball_toolchain() { do_tarball_minipix() { TARBALL_MINIPIX_FNAME=${TARBALL_MINIPIX_FNAME_PREFIX}${BUILD_USER}@${BUILD_HNAME}-${BUILD_DATE_START}.tar.${TARBALL_SUFFIX}; tar -cpf - minipix \ - etc/midipix_shortcut.vbs etc/midipix.sh etc/README |\ + midipix_shortcut.vbs midipix.sh README |\ ${TARBALL_COMPRESS_CMD} ${TARBALL_COMPRESS_ARGS} -c > ${TARBALL_MINIPIX_FNAME}; log_msg info "Finished building binary Minipix distribution tarball."; if [ -x "$(which gpg 2>/dev/null)" -a -n "${TARBALL_MINIPIX_SIGN_GPG_KEY}" ] &&\ |