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 d10244d49e32f4b4e360752a9bab040d35dbce3c..043fd453d09659e39f9c7b055dcd9f4e90fba082 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)