Mercurial > hg > kdocs
changeset 14:624421f445f0
Update the split script to what I'm actually using, and minor fix to the OLS
top level index.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 02 Aug 2007 22:31:53 -0500 |
parents | da6d82bf07a7 |
children | 7caa68027a70 |
files | ols/index.html ols/split.py |
diffstat | 2 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ols/index.html Thu Aug 02 22:31:03 2007 -0500 +++ b/ols/index.html Thu Aug 02 22:31:53 2007 -0500 @@ -4,7 +4,7 @@ Linux Symposium. The original volumes are available from <a href=http://www.linuxsymposium.org>the OLS website</a>.</p> -<h1><a href=2007>OLS 2007 Papers</a></h1> +<h1><a href=2007>OLS 2007 individual papers</a></h1> <p>The proceedings are available in two PDF volumes (<a href=2007/OLS2007-Proceedings-V1.pdf>one</a> <a href=2007/OLS2007-Proceedings-V2.pdf>two</a>) from the
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ols/split.py Thu Aug 02 22:31:53 2007 -0500 @@ -0,0 +1,13 @@ +#!/usr/bin/python + +import os, sys + +infile=sys.argv[1] +credits=sys.argv[2] +numbers=sys.argv[3:] +for i in xrange(len(numbers)): + if i == len(numbers)-1: next = "" + else: next = int(numbers[i+1])-1 + command="pdftk %s.pdf cat %s-%s 1-1 %s-%s output %s-pages-%s-%s.pdf" % (infile,numbers[i],next,credits,credits,infile,numbers[i],next) + print command + os.system(command)