<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 06/02/2010 03:44 PM, Jared Morgan wrote:
<blockquote
 cite="mid:26439920.94.1275457677251.JavaMail.jmorgan@dhcp-1-169.bne.redhat.com"
 type="cite">
  <style type="text/css">p { margin: 0; }</style>
  <div
 style="font-family: Verdana; font-size: 10pt; color: rgb(0, 0, 0);">I've
seen a number of emails flying around that show some nice aliases for
publican commands.  I know many people have implemented their own
aliases to quickly execute basic en-US book builds.  <br>
  <br>
When we build a book, I would imagine most people would want to publish
en-US versions initially.  So why don't we set this as the default
language in command-line arguments, rather than having to specify it
each time?  <br>
  <br>
So instead of executing "publican build -langs=en-US -formats html", it
would simply be "publican build -formats html".<br>
  <br>
For those users who need to generate language-specific versions, they
could override the default by specifying the --langs option when they
execute their publish command.<br>
  <br>
There might be other ways we can shorten what users need to type as
well. How about a "-formats online" option which generates html, and
html-single (possibly even ePub).  <br>
  <br>
Thoughts?<br>
  <br>
Cheers<br>
  <span><br>
Jared Morgan<br>
Content Author<br>
Red Hat Asia Pacific<br>
1/193 North Quay<br>
BRISBANE QLD 4000<br>
  <br>
P: +61 7 3514 8242<br>
M: +61 413 005 479<br>
  </span><br>
  </div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
publican-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:publican-list@redhat.com">publican-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/publican-list">https://www.redhat.com/mailman/listinfo/publican-list</a>
Wiki: <a class="moz-txt-link-freetext" href="https://fedorahosted.org/publican">https://fedorahosted.org/publican</a></pre>
</blockquote>
<br>
$ diff /usr/lib/perl5/vendor_perl/5.10.0/Publican/Builder.pm
/usr/lib/perl5/vendor_perl/5.10.0/Publican/Builder.pm.old<br>
99,100c99,100<br>
<    my $langs = delete( $args->{langs} )<br>
<         || 'en-US';<br>
---<br>
>     my $langs = delete( $args->{langs} )<br>
>         || croak( maketext("langs is a mandatory argument") );<br>
<br>
"There I fixed it" - the wonders of open source. :-)<br>
<br>
Untested and unsupported, usual disclaimers apply.<br>
<br>
Probably a better way to do it would be to have a per-user
publican.defaults file with default  behaviour information in it, and
maybe a system-wide one in /etc, or something like that.<br>
<br>
- Josh<br>
</body>
</html>