From f9eeec7101da55263b644164d1f096af232eb995 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Tue, 25 Aug 2020 14:56:32 -0400 Subject: [bench] Only upload some files We will now also record a listing of all files that we could have uploaded, in case we want to know what's available to upload in the future. --- dev/bench/gitlab.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'dev/bench/gitlab.sh') diff --git a/dev/bench/gitlab.sh b/dev/bench/gitlab.sh index fe17769d99..7625e4e7f7 100755 --- a/dev/bench/gitlab.sh +++ b/dev/bench/gitlab.sh @@ -114,6 +114,15 @@ else exit 1 fi +if which du > /dev/null; then + : +else + echo > /dev/stderr + echo "ERROR: \"du\" program is not available." > /dev/stderr + echo > /dev/stderr + exit 1 +fi + if [ ! -e "$working_dir" ]; then echo > /dev/stderr echo "ERROR: \"$working_dir\" does not exist." > /dev/stderr @@ -430,6 +439,11 @@ for coq_opam_package in $sorted_coq_opam_packages; do done done +# Since we do not upload all files, store a list of the files +# available so that if we at some point want to tweak which files we +# upload, we'll know which ones are available for upload +du -ha "$working_dir" > "$working_dir/files.listing" + # The following directories in $working_dir are no longer used: # # - coq, opam.OLD, opam.NEW -- cgit v1.2.3