From 8448a05d9e85c35f03267218aa8da2382a6169d3 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 16 Jun 2019 17:09:15 -0400 Subject: ob-buildopk: Use ${TOUCH} --- (limited to 'src') 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}" -- cgit v0.9.1