Daryle Walker | 19 Aug 22:33
Favicon

Quick script for quickbook builds?

Is there a quick script out there I can stick in my XCode (2.5, still  
on Mac OS X 10.4) project file, under a run-script phase, that can  
convert a *.qbk file to an HTML file?  In other words, I want to  
"compile" any QuickBook files so I can check my progress without a  
big trip to the command line and messing around with bjam.

--

-- 
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT hotmail DOT com
Eric Niebler | 19 Aug 22:54

Re: Quick script for quickbook builds?

Daryle Walker wrote:
> Is there a quick script out there I can stick in my XCode (2.5, still on 
> Mac OS X 10.4) project file, under a run-script phase, that can convert 
> a *.qbk file to an HTML file?  In other words, I want to "compile" any 
> QuickBook files so I can check my progress without a big trip to the 
> command line and messing around with bjam.

None that I'm aware of, but if you make such a thing I'm sure others 
would find it useful.

--

-- 
Eric Niebler
BoostPro Computing
http://www.boostpro.com
Daryle Walker | 22 Aug 01:23
Favicon

Re: Quick script for quickbook builds?

On Aug 19, 2008, at 4:54 PM, Eric Niebler wrote:

> Daryle Walker wrote:
>> Is there a quick script out there I can stick in my XCode (2.5,  
>> still on Mac OS X 10.4) project file, under a run-script phase,  
>> that can convert a *.qbk file to an HTML file?  In other words, I  
>> want to "compile" any QuickBook files so I can check my progress  
>> without a big trip to the command line and messing around with bjam.
>
> None that I'm aware of, but if you make such a thing I'm sure  
> others would find it useful.

The point was for someone else to do it for me, but....

I read up on how files with a specific extension that don't have a  
default compiler assigned to them can get one, and how said custom  
compiler can be a user-developed script program.  So I added the  
QuickBook sources to my project (and the ones for Boost.FileSystem,  
System, and ProgramOptions) to make the tool.  Then I added a rule  
for *.qbk files to run a single-line script to create a corresponding  
*.qbk.xml file.

I added another rule to convert that file (trivially) to a *.txt  
file.  But what really want to do is convert that *.qbk.xml file,  
which is in BoostBook format, into a *.html (or *.pdf) file.  There's  
a Boost.Build/Jam procedure for doing this, but how do I do it  
manually?  In other words, does someone know what the command line  
instructions that the Jamfiles are converted to?  I think there's a  
verbose mode for bJam, but I don't think that will help since I've  
never been able to get the documentation building stuff working.
(Continue reading)

Eric Niebler | 22 Aug 01:30

Re: Quick script for quickbook builds?

Daryle Walker wrote:
> On Aug 19, 2008, at 4:54 PM, Eric Niebler wrote:
> 
> I added another rule to convert that file (trivially) to a *.txt file.  
> But what really want to do is convert that *.qbk.xml file, which is in 
> BoostBook format, into a *.html (or *.pdf) file.  There's a 
> Boost.Build/Jam procedure for doing this, but how do I do it manually?  

<snip>

I don't think you need a working toolchain. Probably the necessary 
usings in your user-config.jam is enough, and then do:

   bjam -a -n -d+2

-a for rebuild all
-n for don't actually execute the commands
-d+2 for displaying the commands that would be executed.

HTH,

--

-- 
Eric Niebler
BoostPro Computing
http://www.boostpro.com
Daryle Walker | 22 Aug 20:18
Favicon

Re: Quick script for quickbook builds?

On Aug 21, 2008, at 7:30 PM, Eric Niebler wrote:

> Daryle Walker wrote:
>> On Aug 19, 2008, at 4:54 PM, Eric Niebler wrote:
>> I added another rule to convert that file (trivially) to a *.txt  
>> file.  But what really want to do is convert that *.qbk.xml file,  
>> which is in BoostBook format, into a *.html (or *.pdf) file.   
>> There's a Boost.Build/Jam procedure for doing this, but how do I  
>> do it manually?
>
> <snip>
>
> I don't think you need a working toolchain. Probably the necessary  
> usings in your user-config.jam is enough, and then do:
>
>   bjam -a -n -d+2
>
> -a for rebuild all
> -n for don't actually execute the commands
> -d+2 for displaying the commands that would be executed.
>

I think I got an infinite loop somewhere.

1.  I added a custom setting for "XML_CATALOG_FILES" to be "$ 
(BOOST_SVN)/bin.v2/boostbook_catalog.xml"
2.  I added some custom rules
   A.  Process files matching *.qbk with:
${TARGET_BUILD_DIR}/QuickBook --input-file ${INPUT_FILE_PATH} -I $ 
{BOOST_SVN} --output-file ${DERIVED_FILES_DIR}/${INPUT_FILE_BASE}.xml
(Continue reading)

John Maddock | 22 Aug 10:42

Re: Quick script for quickbook builds?

Daryle Walker wrote:
> On Aug 19, 2008, at 4:54 PM, Eric Niebler wrote:
>
>> Daryle Walker wrote:
>>> Is there a quick script out there I can stick in my XCode (2.5,
>>> still on Mac OS X 10.4) project file, under a run-script phase,
>>> that can convert a *.qbk file to an HTML file?  In other words, I
>>> want to "compile" any QuickBook files so I can check my progress
>>> without a big trip to the command line and messing around with bjam.
>>
>> None that I'm aware of, but if you make such a thing I'm sure
>> others would find it useful.
>
>
> The point was for someone else to do it for me, but....
>
> I read up on how files with a specific extension that don't have a
> default compiler assigned to them can get one, and how said custom
> compiler can be a user-developed script program.  So I added the
> QuickBook sources to my project (and the ones for Boost.FileSystem,
> System, and ProgramOptions) to make the tool.  Then I added a rule
> for *.qbk files to run a single-line script to create a corresponding
> *.qbk.xml file.
>
> I added another rule to convert that file (trivially) to a *.txt
> file.  But what really want to do is convert that *.qbk.xml file,
> which is in BoostBook format, into a *.html (or *.pdf) file.  There's
> a Boost.Build/Jam procedure for doing this, but how do I do it
> manually?  In other words, does someone know what the command line
> instructions that the Jamfiles are converted to?  I think there's a
(Continue reading)


Gmane