From: Matthijs Kooijman Date: Thu, 30 Jul 2009 10:18:37 +0000 (+0200) Subject: Use AddPostAction for scp'ing Report.pdf. X-Git-Tag: final-thesis~304 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=295710e4fa6795a6d789703466dd5a7dfb488990;p=matthijs%2Fmaster-project%2Freport.git Use AddPostAction for scp'ing Report.pdf. This is slightly more elegant than doing the scp as part of the context builder. --- diff --git a/SConstruct b/SConstruct index d10244d..043fd45 100644 --- a/SConstruct +++ b/SConstruct @@ -12,7 +12,7 @@ DEFAULT_TARGET = 'Report.pdf' env = Environment() ## Context MkIV Builder: -contextBuilder = Builder(action=['texexec --lua $SOURCE','scp $TARGET ewi:'], +contextBuilder = Builder(action='texexec --lua $SOURCE', suffix='.pdf', src_suffix='.tex') env.Append(BUILDERS={'Context': contextBuilder}) @@ -40,4 +40,6 @@ Depends(report, 'Utils/Formats.tex') Depends(report, 'Utils/Lambda.tex') Depends(report, 'Utils/Shortcuts.tex') +AddPostAction(report, 'scp $TARGET ewi:') + Default(DEFAULT_TARGET)