Re: Portmaster and update progress, suggestion.

2012-06-06 Thread Leslie Jensen



2012-06-04 16:10, Leslie Jensen skrev:



2012-06-04 15:54, Warren Block skrev:

% printf \033];Funny Title\007



Works!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
freebsd-questions-unsubscr...@freebsd.org




Can the reason for me not getting the title to change be that I very 
often use screen when updating ports?


I've tried different combinations and I'm only able to get the title 
when I work locally.


Screen and ssh does not change the title.


My initial wish for some information about the build progress is still 
very much on the table.


Thanks

/Leslie

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Portmaster and update progress, suggestion.

2012-06-06 Thread Doug Barton
On 06/06/2012 09:11, Leslie Jensen wrote:
 My initial wish for some information about the build progress is still
 very much on the table.

Try the attached patch. It essentially adds the progress info that is
being put in the TERM title to the in-line printout of the dependency
trail that was already there.

Let me know what you think,

Doug

-- 

This .signature sanitized for your protection
Index: portmaster
===
--- portmaster  (revision 236697)
+++ portmaster  (working copy)
@@ -2208,6 +2208,8 @@
 }
 
 term_printf () {
+   echo -e \n\t${PM_PARENT_PORT}${1}
+
[ -n $PM_NO_TERM_TITLE ]  return
case $TERM in cons*) return ;; esac
 
@@ -2283,7 +2285,7 @@
deps= (${dep_of_deps}/${num_of_deps})
 
if [ -n $PM_DEPTH ]; then
-   echo   ${PM_DEPTH} ${1#$pd/}
+   #echo  ${PM_DEPTH} ${1#$pd/}
term_printf  ${PM_DEPTH#* } ${1#$pd/}${deps}
else
[ -n $UPDATE_ALL ]  term_printf   ${1#$pd/}${deps}
@@ -2623,7 +2625,7 @@
[ -z $dep_of_deps ]  dep_of_deps=0
export PM_PARENT_PORT num_of_deps dep_of_deps
 
-   term_printf
+   #term_printf
 }
 
 if [ -n $PM_URB ]; then
@@ -2783,6 +2785,7 @@
 
numports=$(( $numports + 1 ))
init_term_printf $port ${numports}/${numports}
+   term_printf
($0 $ARGS $port) || update_failed=update_failed
. $IPC_SAVE
[ -n $update_failed ]  fail Update for $port failed
@@ -2825,6 +2828,7 @@
 
num=$(( $num + 1 ))
init_term_printf $port ${num}/${numports}
+   term_printf
($0 $ARGS $port) || update_failed=update_failed
. $IPC_SAVE
[ -n $update_failed ]  fail Update for $port failed
@@ -2978,6 +2982,7 @@
[ -n $DI_FILES ]  (read_distinfos)
 
init_term_printf All
+   term_printf
 
ports_by_category
echo === Starting check of installed ports for available updates
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Re: Portmaster and update progress, suggestion.

2012-06-06 Thread Doug Barton
On 06/06/2012 15:06, Doug Barton wrote:
 On 06/06/2012 09:11, Leslie Jensen wrote:
 My initial wish for some information about the build progress is still
 very much on the table.
 
 Try the attached patch. 

Actually try this one instead. :)


-- 

This .signature sanitized for your protection
Index: portmaster
===
--- portmaster  (revision 236697)
+++ portmaster  (working copy)
@@ -2208,6 +2208,8 @@
 }
 
 term_printf () {
+   case $1 in *\\*) echo -e \n\t${PM_PARENT_PORT}${1} ;; esac
+
[ -n $PM_NO_TERM_TITLE ]  return
case $TERM in cons*) return ;; esac
 
@@ -2283,7 +2285,6 @@
deps= (${dep_of_deps}/${num_of_deps})
 
if [ -n $PM_DEPTH ]; then
-   echo   ${PM_DEPTH} ${1#$pd/}
term_printf  ${PM_DEPTH#* } ${1#$pd/}${deps}
else
[ -n $UPDATE_ALL ]  term_printf   ${1#$pd/}${deps}
@@ -2527,19 +2528,16 @@
safe_exit
elif [ -n $PM_FIRST_PASS -a -z $PM_PACKAGES ]; then
echo === Initial dependency check complete for $portdir
-   case $PM_DEPTH in *\\*) echo   $PM_DEPTH ;; esac
else
echo === Dependency check complete for $portdir
-   case $PM_DEPTH in
-   *\\*) echo   $PM_DEPTH ;;
-   *)  if [ $PM_PARENT_PORT = All ]; then
-   local deps
-   deps= (${dep_of_deps}/${num_of_deps})
-   term_printf   ${upg_port:-$portdir}${deps}
-   else
-   term_printf
-   fi ;;
-   esac
+
+   if [ $PM_PARENT_PORT = All ]; then
+   local deps
+   deps= (${dep_of_deps}/${num_of_deps})
+   term_printf   ${upg_port:-$portdir}${deps}
+   else
+   term_printf
+   fi
fi
 } # dependency_check()
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Re: Portmaster and update progress, suggestion.

2012-06-04 Thread Leslie Jensen



2012-06-03 18:18, Warren Block skrev:

On Sun, 3 Jun 2012, Warren Block wrote:


On Sun, 3 Jun 2012, Leslie Jensen wrote:




2012-06-02 19:18, Doug Barton skrev:

On 6/2/2012 8:09 AM, Leslie Jensen wrote:

I'm thinking about some kind of information on the build progress


Portmaster already has that if you're building in a terminal window,
look in the titlebar. I can take a look at printing that in line if
you're not in a terminal window though.



I'm running in XFCE4 terminal and the titlebar is empty here!

So do I need to activate this function?


It's on by default. --no-term-title disables it, as does setting
PM_NO_TERM_TITLE in portmaster.rc.


Oh, and xfce's Terminal has a preferences setting that can prevent
dynamically-set titles from being displayed.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
freebsd-questions-unsubscr...@freebsd.org



I found that setting and changed it.

I forgot to tell you that I'm working through an SSH connection and 
maybe it's because of that I cannot see any title?


I'll test as soon as I've got the system up with X again.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Portmaster and update progress, suggestion.

2012-06-04 Thread Doug Barton
On 06/04/2012 00:35, Leslie Jensen wrote:
 I found that setting and changed it.

That should do it then. Thanks to Warren for suggesting it.

 I forgot to tell you that I'm working through an SSH connection and
 maybe it's because of that I cannot see any title?

Nope. Should work just fine for you, I've done thousands of portmaster
upgrades over ssh.

Let me know how it goes,

Doug

-- 

This .signature sanitized for your protection
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Portmaster and update progress, suggestion.

2012-06-04 Thread Leslie Jensen



2012-06-04 09:41, Doug Barton skrev:

On 06/04/2012 00:35, Leslie Jensen wrote:

I found that setting and changed it.


That should do it then. Thanks to Warren for suggesting it.


I forgot to tell you that I'm working through an SSH connection and
maybe it's because of that I cannot see any title?


Nope. Should work just fine for you, I've done thousands of portmaster
upgrades over ssh.

Let me know how it goes,

Doug



I've set that dynamic title should go before initial title. I've also 
tried the setting that it should replace initial title. None of the 
settings changes anything.


I've no title at all apart from Terminal

/Leslie
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Portmaster and update progress, suggestion.

2012-06-04 Thread Leslie Jensen



2012-06-04 10:14, Leslie Jensen skrev:



2012-06-04 09:41, Doug Barton skrev:

On 06/04/2012 00:35, Leslie Jensen wrote:

I found that setting and changed it.


That should do it then. Thanks to Warren for suggesting it.


I forgot to tell you that I'm working through an SSH connection and
maybe it's because of that I cannot see any title?


Nope. Should work just fine for you, I've done thousands of portmaster
upgrades over ssh.

Let me know how it goes,

Doug



I've set that dynamic title should go before initial title. I've also
tried the setting that it should replace initial title. None of the
settings changes anything.

I've no title at all apart from Terminal

/Leslie
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
freebsd-questions-unsubscr...@freebsd.org



After a restart of xfce I've got the Title to change, but I can only see 
the initial command ie portmaster All.




/Leslie


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Portmaster and update progress, suggestion.

2012-06-04 Thread Warren Block

On Mon, 4 Jun 2012, Leslie Jensen wrote:


2012-06-04 09:41, Doug Barton skrev:

On 06/04/2012 00:35, Leslie Jensen wrote:

I found that setting and changed it.


That should do it then. Thanks to Warren for suggesting it.


I forgot to tell you that I'm working through an SSH connection and
maybe it's because of that I cannot see any title?


Nope. Should work just fine for you, I've done thousands of portmaster
upgrades over ssh.



I've set that dynamic title should go before initial title. I've also tried 
the setting that it should replace initial title. None of the settings 
changes anything.


I've no title at all apart from Terminal


Could be something in your prompt resetting it.  Does
  % printf \033];Funny Title\007
change the title?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Portmaster and update progress, suggestion.

2012-06-04 Thread Leslie Jensen



2012-06-04 15:54, Warren Block skrev:

% printf \033];Funny Title\007



Works!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Portmaster and update progress, suggestion.

2012-06-03 Thread Warren Block

On Sun, 3 Jun 2012, Leslie Jensen wrote:




2012-06-02 19:18, Doug Barton skrev:

On 6/2/2012 8:09 AM, Leslie Jensen wrote:

I'm thinking about some kind of information on the build progress


Portmaster already has that if you're building in a terminal window,
look in the titlebar. I can take a look at printing that in line if
you're not in a terminal window though.



I'm running in XFCE4 terminal and the titlebar is empty here!

So do I need to activate this function?


It's on by default.  --no-term-title disables it, as does setting 
PM_NO_TERM_TITLE in portmaster.rc.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Portmaster and update progress, suggestion.

2012-06-03 Thread Warren Block

On Sun, 3 Jun 2012, Warren Block wrote:


On Sun, 3 Jun 2012, Leslie Jensen wrote:




2012-06-02 19:18, Doug Barton skrev:

On 6/2/2012 8:09 AM, Leslie Jensen wrote:

I'm thinking about some kind of information on the build progress


Portmaster already has that if you're building in a terminal window,
look in the titlebar. I can take a look at printing that in line if
you're not in a terminal window though.



I'm running in XFCE4 terminal and the titlebar is empty here!

So do I need to activate this function?


It's on by default.  --no-term-title disables it, as does setting 
PM_NO_TERM_TITLE in portmaster.rc.


Oh, and xfce's Terminal has a preferences setting that can prevent 
dynamically-set titles from being displayed.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Portmaster and update progress, suggestion.

2012-06-02 Thread Leslie Jensen


I'm thinking about some kind of information on the build progress when 
one does larger updates like the newly recommendation in

/usr/ports/UPDATING

portmaster -r png-

I myself have three machines with different capacity when it comes to 
building ports.


How about a knobb one could choose that would give information after 
finishing building one port and before beginning on the next one, that 
would be something like:


finishing foo port xx ports remaining
or something in that order.

At least it would informative for me to get an idea of how far in the 
process the machine is.



Thanks

/Leslie
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Portmaster and update progress, suggestion.

2012-06-02 Thread Doug Barton
On 6/2/2012 8:09 AM, Leslie Jensen wrote:
 I'm thinking about some kind of information on the build progress

Portmaster already has that if you're building in a terminal window,
look in the titlebar. I can take a look at printing that in line if
you're not in a terminal window though.

hope this helps,

Doug

-- 

This .signature sanitized for your protection
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Portmaster and update progress, suggestion.

2012-06-02 Thread Leslie Jensen



2012-06-02 19:18, Doug Barton skrev:

On 6/2/2012 8:09 AM, Leslie Jensen wrote:

I'm thinking about some kind of information on the build progress


Portmaster already has that if you're building in a terminal window,
look in the titlebar. I can take a look at printing that in line if
you're not in a terminal window though.

hope this helps,

Doug




I'm running in XFCE4 terminal and the titlebar is empty here!

So do I need to activate this function?

Thanks

/Leslie
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org