]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
add extra time reports for the release-buildpk3 target, as that seems to take longest
authorRudolf Polzer <divVerent@xonotic.org>
Wed, 25 May 2011 14:15:14 +0000 (16:15 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Wed, 25 May 2011 14:15:14 +0000 (16:15 +0200)
all

diff --git a/all b/all
index 1cbc3b9f4507753854482a8b51abcb5c93417999..9a4a90d130d67417aeac5802f21a232d3e48b05d 100755 (executable)
--- a/all
+++ b/all
@@ -281,6 +281,16 @@ case "$cmd" in
                        msg "*** $release_args: $release_deltatime seconds"
                }
                trap release_end EXIT
+               release_tempstarttime=$release_starttime
+               release_timereport()
+               {
+                       release_now=`date +%s` # RELEASE NOW!!!
+                       release_tempstarttime=$release_now
+                       if [ -n "$*" ]; then
+                               release_deltatime=$(($release_tempstarttime - $release_now))
+                               msg "**** $release_args: $*: $release_deltatime seconds"
+                       fi
+               }
                ;;
 esac
 
@@ -1808,7 +1818,9 @@ case "$cmd" in
                                dst="$PWD/$dst"
                                ;;
                esac
+               release_timereport
                verbose rm -rf Xonotic/temp
+               release_timereport "deleted temp directory"
                verbose mkdir -p Xonotic/temp
                {
                        verbose cd "$src"
@@ -1817,6 +1829,7 @@ case "$cmd" in
                        verbose cd Xonotic/temp
                        verbose tar xvf -
                }
+               release_timereport "extracted data"
                verbose cd Xonotic/temp
                if [ x"$src" = x"data/xonotic-data.pk3dir" ]; then
                        verbose cp ../source/progs.dat .
@@ -1863,10 +1876,14 @@ case "$cmd" in
                        done
                fi
                verbose export git_src_repo="$d0/$src" # skip hash-object
+               release_timereport "processed data"
                verbose "$SELF" release-buildpk3-transform-$transform "Xonotic/temp"
+               release_timereport "transformed data"
                verbose mkzipr "../../$dst" *
+               release_timereport "zipped data"
                verbose cd ../..
                verbose rm -rf Xonotic/temp
+               release_timereport "deleted temp directory again"
                ;;
        release-buildpk3s)
                stamp=`cat Xonotic/stamp.txt`