Skip to content

Commit

Permalink
build-gnu.sh: use symlink instead of copy
Browse files Browse the repository at this point in the history
Plus: it won't cp new md5
  • Loading branch information
sylvestre committed Jan 21, 2024
1 parent 12501a6 commit 0b5b55e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/build-gnu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ cp "${UU_BUILD_DIR}/install" "${UU_BUILD_DIR}/ginstall" # The GNU tests rename t
# Create *sum binaries
for sum in b2sum b3sum md5sum sha1sum sha224sum sha256sum sha384sum sha512sum; do
sum_path="${UU_BUILD_DIR}/${sum}"
test -f "${sum_path}" || cp "${UU_BUILD_DIR}/hashsum" "${sum_path}"
test -f "${sum_path}" || (cd ${UU_BUILD_DIR} && ln -s "hashsum" "${sum}")
done
test -f "${UU_BUILD_DIR}/[" || cp "${UU_BUILD_DIR}/test" "${UU_BUILD_DIR}/["
test -f "${UU_BUILD_DIR}/[" || (cd ${UU_BUILD_DIR} && ln -s "test" "[")

##

Expand Down

0 comments on commit 0b5b55e

Please sign in to comment.