diff options
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}" ] &&\ |