summaryrefslogtreecommitdiff
path: root/scripts
authorMichael Krelin <hacker@klever.net>2013-11-26 20:16:08 (UTC)
committer Michael Krelin <hacker@klever.net>2013-11-26 20:16:08 (UTC)
commit7759f50a024a3e450237c308562ae745c808d2e1 (patch) (unidiff)
treec3ac074e224cb0632a858f9c24c43e6c1ccdd631 /scripts
parentfab898af773b3bbf28ed6c67c89b032d740d19f1 (diff)
downloadclipperz-7759f50a024a3e450237c308562ae745c808d2e1.zip
clipperz-7759f50a024a3e450237c308562ae745c808d2e1.tar.gz
clipperz-7759f50a024a3e450237c308562ae745c808d2e1.tar.bz2
builder: moved temp folder adjustements where it belongs
it wasn't meant to be in the script language builder, but only should've affected node backend
Diffstat (limited to 'scripts') (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/builder/backends/nodeBuilder.py6
-rw-r--r--scripts/builder/backends/scriptLanguageBuilder.py3
2 files changed, 5 insertions, 4 deletions
diff --git a/scripts/builder/backends/nodeBuilder.py b/scripts/builder/backends/nodeBuilder.py
index bb63204..783746e 100755
--- a/scripts/builder/backends/nodeBuilder.py
+++ b/scripts/builder/backends/nodeBuilder.py
@@ -1,13 +1,17 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2# -*- coding: UTF-8 -*- 2# -*- coding: UTF-8 -*-
3 3
4import os
4from scriptLanguageBuilder import ScriptLanguageBuilder 5from scriptLanguageBuilder import ScriptLanguageBuilder
5 6
6class NodeBuilder(ScriptLanguageBuilder): 7class NodeBuilder(ScriptLanguageBuilder):
7 8
8 def name(self): 9 def name(self):
9 return "Node builder" 10 return "Node builder"
10 11
11
12 def relativePath(self): 12 def relativePath(self):
13 return 'node' 13 return 'node'
14
15 def frontEndTempFolder (self):
16 return os.path.join(self.tempFolder(),'htdocs')
17
diff --git a/scripts/builder/backends/scriptLanguageBuilder.py b/scripts/builder/backends/scriptLanguageBuilder.py
index f2d32ba..fb8e609 100644
--- a/scripts/builder/backends/scriptLanguageBuilder.py
+++ b/scripts/builder/backends/scriptLanguageBuilder.py
@@ -1,24 +1,21 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2# -*- coding: UTF-8 -*- 2# -*- coding: UTF-8 -*-
3 3
4import os 4import os
5import shutil 5import shutil
6from backendBuilder import BackendBuilder 6from backendBuilder import BackendBuilder
7 7
8class ScriptLanguageBuilder(BackendBuilder): 8class ScriptLanguageBuilder(BackendBuilder):
9 9
10 def frontEndTempFolder (self):
11 return os.path.join(self.tempFolder(),'htdocs')
12
13 def compileCode (self): 10 def compileCode (self):
14 src = self.sourceFolder() 11 src = self.sourceFolder()
15 dst = self.tempFolder() 12 dst = self.tempFolder()
16 13
17 shutil.copytree(src, dst) 14 shutil.copytree(src, dst)
18 15
19 16
20 def createPackage (self): 17 def createPackage (self):
21 src = self.tempFolder() 18 src = self.tempFolder()
22 dst = self.targetFolder() 19 dst = self.targetFolder()
23 20
24 shutil.copytree(src, dst) 21 shutil.copytree(src, dst)