[prev in list] [next in list] [prev in thread] [next in thread]
List: ipcop-svn
Subject: [Ipcop-svn] SF.net SVN: ipcop: [1337] ipcop/trunk/make.sh
From: gespinasse () users ! sourceforge ! net
Date: 2008-04-29 15:45:38
Message-ID: E1Jqs1S-0007Vs-IV () sc8-pr-svn4 ! sourceforge ! net
[Download RAW message or body]
Revision: 1337
http://ipcop.svn.sourceforge.net/ipcop/?rev=1337&view=rev
Author: gespinasse
Date: 2008-04-29 08:45:38 -0700 (Tue, 29 Apr 2008)
Log Message:
-----------
Change SHOW_PROGRESS to display in real time the time spend in compilation
Less funny than the swirling cursor, but allow to see abnormal situations
Modified Paths:
--------------
ipcop/trunk/make.sh
Modified: ipcop/trunk/make.sh
===================================================================
--- ipcop/trunk/make.sh 2008-04-27 23:10:24 UTC (rev 1336)
+++ ipcop/trunk/make.sh 2008-04-29 15:45:38 UTC (rev 1337)
@@ -462,23 +462,15 @@
echo -ne "\\033[?25l"
# Move the cursor to the results column
- echo -ne "${SET_RESULT_COL}[ ]"
- echo -ne "\\033[4D"
+ echo -ne "${SET_RESULT_TIME}[ ]"
+ echo -ne "\\033[11D"
while [ -f ${RUNNING_MARKER} -a ! -f ${FAILED_MARKER} ]
do
- echo -ne "|" 2> /dev/null
- sleep 0.001
- echo -ne "\\033[1D" 2> /dev/null
- echo -ne "/" 2> /dev/null
- sleep 0.001
- echo -ne "\\033[1D" 2> /dev/null
- echo -ne "-" 2> /dev/null
- sleep 0.001
- echo -ne "\\033[1D" 2> /dev/null
- echo -ne "\\" 2> /dev/null
- sleep 0.001
- echo -ne "\\033[1D" 2> /dev/null
+ local PKG_TIME_END=`date +%s`
+ beautify result PENDING $[ ${PKG_TIME_END} - ${PKG_TIME_START} ] ${1} ${PKG_VER} \
${STAGE_ORDER} ${STAGE} + echo -ne "\\033[11D" 2> /dev/null
+ sleep 0.01
done
# Show the cursor
@@ -577,7 +569,7 @@
if [ x"${OPTIONS}" == x"" ]; then
echo -ne "${PROGRAM}${SET_VER_COL}[ ${BOLD}${SET_VER_COL_REAL}${PKG_VER}"
- echo -ne "${NORMAL} ]${SET_RESULT_COL}"
+ echo -ne "${NORMAL} ]"
else
echo -ne "${PROGRAM}${SET_OPT_COL}[ ${BOLD}${OPTIONS}${NORMAL} ]"
echo -ne "${SET_VER_COL}[ ${BOLD}${SET_VER_COL_REAL}${PKG_VER}"
@@ -613,6 +605,9 @@
echo -ne "${SET_TIME_COL}[ ${BOLD}${SET_TIME_COL_REAL}$PKG_TIME${NORMAL} ]"
echo -ne "${SET_RESULT_COL}[${SKIP} SKIP ${NORMAL}]\n"
;;
+ PENDING)
+ echo -ne "${SET_TIME_COL}[ ${BOLD}${SET_TIME_COL_REAL}$PKG_TIME${NORMAL} ]"
+ ;;
esac
;;
esac
This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic