diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-06-16 17:09:15 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-06-16 17:09:15 (EDT) |
commit | 8448a05d9e85c35f03267218aa8da2382a6169d3 (patch) | |
tree | fa79fda14dec711d7f7f23b40136df6e4b78195b /src | |
parent | a667eb02e6899ae6bba3802e38af604af1e3bac6 (diff) |
ob-buildopk: Use ${TOUCH}
Diffstat (limited to 'src')
-rw-r--r-- | src/ob-buildopk.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ob-buildopk.sh b/src/ob-buildopk.sh index a655ff9..9c318a3 100644 --- a/src/ob-buildopk.sh +++ b/src/ob-buildopk.sh @@ -31,7 +31,7 @@ build_opk() ob_info "$(ob_get_msg 'build_opk')" \ "${binary}_${version}_${arch}_${plat}.opk" - find "${binary}.control" "${binary}.data" | xargs touch -d "${date}" + find "${binary}.control" "${binary}.data" | xargs ${TOUCH} -d "${date}" # This utility runs with (fake) privileges, so we can chown what we're # about to tar. find "${binary}.control" "${binary}.data" | xargs chown 0:0 @@ -39,7 +39,7 @@ build_opk() tar -czf '../control.tar.gz' -T -) (cd -- "${binary}.data" && find '.' \! -type d | LC_ALL=C sort | \ tar -czf '../data.tar.gz' -T -) - touch -d "${date}" 'control.tar.gz' 'data.tar.gz' + ${TOUCH} -d "${date}" 'control.tar.gz' 'data.tar.gz' tar -czf "../../${binary}_${version}_${arch}_${plat}.opk" \ 'debian-binary' 'control.tar.gz' 'data.tar.gz' @@ -65,7 +65,7 @@ main() date="$(ob_iso8601_gmtime "${SOURCE_DATE_EPOCH}")" printf '2.0\n' >'debian-binary' - touch -d "${date}" 'debian-binary' + ${TOUCH} -d "${date}" 'debian-binary' if [ x"${OB_DO_SOURCE:+set}" = x'set' ]; then build_opk "src-${OPK_SOURCE}" "${OPK_SOURCE_VERSION}" \ 'src' 'all' "${date}" |