Use AddPostAction for scp'ing Report.pdf.
authorMatthijs Kooijman <m.kooijman@student.utwente.nl>
Thu, 30 Jul 2009 10:18:37 +0000 (12:18 +0200)
committerMatthijs Kooijman <m.kooijman@student.utwente.nl>
Thu, 30 Jul 2009 10:18:37 +0000 (12:18 +0200)
This is slightly more elegant than doing the scp as part of the context
builder.

SConstruct

index d10244d..043fd45 100644 (file)
@@ -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)