Use of VERBOSE in debian-cd
Hi all, The debian-cd scripts are not necessarily run by hand. A higher level script may be driving. That, in turn, may be driven by yet another layer of scripting. (In fact, that's what I'm doing now.) Unfortunately, one cannot know that a hierarchy of scripts used by some scripts that are being used by my scripts are going to be unable to cope with a non-numeric value in the environment variable, VERBOSE. I got error messages from "list2cd" because VERBOSE was set to "true". Please consider being careful: my $verbose = $ENV{VERBOSE} || 0; if ($verbose !~ m/^\d+$/) { $verbose = 0; } Thank you. - Bruce -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Use of VERBOSE in debian-cd
"Bruce Korb" <[EMAIL PROTECTED]> writes: > Hi all, > > The debian-cd scripts are not necessarily run by hand. > A higher level script may be driving. That, in turn, may > be driven by yet another layer of scripting. (In fact, that's > what I'm doing now.) Unfortunately, one cannot know that > a hierarchy of scripts used by some scripts that are being > used by my scripts are going to be unable to cope with > a non-numeric value in the environment variable, VERBOSE. > I got error messages from "list2cd" because VERBOSE was > set to "true". Please consider being careful: > > my $verbose = $ENV{VERBOSE} || 0; > if ($verbose !~ m/^\d+$/) { > $verbose = 0; > } Personally I don't like this change since all the other vars has same usage and then we would need to validate all of them. All debian-cd uses 0 and 1 for false and true. About the proposed change, you forgot to quote VERBOSE a as 'VERBOSE'. My 2c -- O T A V I OS A L V A D O R - E-mail: [EMAIL PROTECTED] UIN: 5906116 GNU/Linux User: 239058 GPG ID: 49A5F855 Home Page: http://otavio.ossystems.com.br - "Microsoft sells you Windows ... Linux gives you the whole house." -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#208809: Hi dear, need relationship?
Hi, am very sorry for not writing you earlier on, I hope you fine. Please, can you tell me more about your self thnaks -- Jacob
Re: Use of VERBOSE in debian-cd
On 10/26/07, Otavio Salvador <[EMAIL PROTECTED]> wrote: > "Bruce Korb" <[EMAIL PROTECTED]> writes: > > > Hi all, > > > > The debian-cd scripts are not necessarily run by hand. > > A higher level script may be driving. [...]. Please consider being careful: > > > > my $verbose = $ENV{VERBOSE} || 0; > > if ($verbose !~ m/^\d+$/) { > > $verbose = 0; > > } > > Personally I don't like this change since all the other vars has same > usage and then we would need to validate all of them. > > All debian-cd uses 0 and 1 for false and true. But not all scripts that use debian-cd. > About the proposed change, you forgot to quote VERBOSE a as 'VERBOSE'. I'm not a perl programmer. Anyway, it is helpful to validate environment variable values you get from other programs/scripts. Especially something that might be in very common use like "VERBOSE". Were it "LIST2CD_VERBOSE", that'd be a different issue. And a non-issue were it set with a command line option. In the end, it's only an ugly error message from perl. It does not the program to die. Thanks - Bruce -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#208809: GTissotSurveyor
Room Best christmas gift for your loved ones. Alain Silberstein www.arriwjkk.com. Remove the dot from the end of the link. before using the link. Chess Board -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Assistance with getting Debian-cd to include source code
Hello Everyone, Well for some unknown reason, debian-cd decided to work for me after my earlier post that the subversion build would not work. I now really would appreciate assistance as I can not find out from google nor the help file for debian-cd how I am meant to get it to produce dvd's of the source code. The build_all.sh script included with debian-cd says that it will build the sources, however after trying multiple times it only produces the .iso files for the binary packages. It is not listed anywhere in the CONF.sh file, though I have tried putting it there as an export like this: export SOURCE=1 ( which did not work) export INC_SOURCE=1 (also did not work) export INC_SOURCE=yes ( I found this in the Makefile, but also this did not work). Please advise me exactly what I need to do to include the source code when running debian-cd as the documentation on it appears to be non existant, or points to way outdated wiki entries that have no relavance to debian etch. Regards, Christopher. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Assistance with getting Debian-cd to include source code
On Sat, Oct 27, 2007 at 11:26:30AM +1300, Christopher Gregory wrote: >Hello Everyone, > >Well for some unknown reason, debian-cd decided to work for me after my >earlier post that the subversion build would not work. > >I now really would appreciate assistance as I can not find out from >google nor the help file for debian-cd how I am meant to get it to >produce dvd's of the source code. > >The build_all.sh script included with debian-cd says that it will build >the sources, however after trying multiple times it only produces >the .iso files for the binary packages. > >It is not listed anywhere in the CONF.sh file, though I have tried >putting it there as an export like this: > > export SOURCE=1 ( which did not work) >export INC_SOURCE=1 (also did not work) >export INC_SOURCE=yes ( I found this in the Makefile, but also this did >not work). "./build.sh source" should do what you need. Source is treated as (essentially) just another architecture at the top level. Older versions treated source specially, but not any more. -- Steve McIntyre, Cambridge, UK.[EMAIL PROTECTED] Is there anybody out there? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]