diff options
author | Mike Crute <mcrute@gmail.com> | 2010-09-07 23:07:11 -0400 |
---|---|---|
committer | Mike Crute <mcrute@gmail.com> | 2010-09-07 23:07:11 -0400 |
commit | 55759e1ca540599d88e6492a1b08dee3ebbb3721 (patch) | |
tree | 8b3ec807b584dfdb7153ad5aa9052153d1c5ee64 | |
parent | fd8deec81aec163af60a27f3527818d829724007 (diff) | |
download | ventriloquy-55759e1ca540599d88e6492a1b08dee3ebbb3721.tar.bz2 ventriloquy-55759e1ca540599d88e6492a1b08dee3ebbb3721.tar.xz ventriloquy-55759e1ca540599d88e6492a1b08dee3ebbb3721.zip |
Moving metabuild for no good reason
-rw-r--r-- | Makefile | 17 | ||||
-rwxr-xr-x | bin/metabuild.py | 38 | ||||
-rwxr-xr-x | metabuild.py | 23 |
3 files changed, 38 insertions, 40 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index bc29e82..0000000 --- a/Makefile +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | WEB_ROOT=/srv/www/crute.org/mike/htdocs | ||
2 | |||
3 | site: build-site sync | ||
4 | css: build-css sync | ||
5 | |||
6 | build-site: | ||
7 | ventriloquy/metabuild.py | ||
8 | |||
9 | sync: | ||
10 | rsync -auvz rendered/ $(WEB_ROOT) | ||
11 | chgrp -R www-data $(WEB_ROOT) | ||
12 | chmod -R g+r $(WEB_ROOT) | ||
13 | find $(WEB_ROOT) -type d -exec chmod g+x {} \; | ||
14 | |||
15 | build-css: | ||
16 | python downloads/cmpcss resources/site.css > resources/site-min.css | ||
17 | cp resources/site-min.css rendered/resources/site-min.css | ||
diff --git a/bin/metabuild.py b/bin/metabuild.py new file mode 100755 index 0000000..a9f1343 --- /dev/null +++ b/bin/metabuild.py | |||
@@ -0,0 +1,38 @@ | |||
1 | #!/usr/bin/env python | ||
2 | # vim: set filencoding=utf8 | ||
3 | """ | ||
4 | Website Build Script | ||
5 | |||
6 | @author: Mike Crute (mcrute@ag.com) | ||
7 | @organization: American Greetings Interactive | ||
8 | @date: June 03, 2010 | ||
9 | |||
10 | TODO: | ||
11 | * Site Map Builder | ||
12 | * Full Blog Builder | ||
13 | * Index page | ||
14 | * Archive page | ||
15 | * Feeds | ||
16 | """ | ||
17 | import sys | ||
18 | |||
19 | from os.path import dirname, realpath | ||
20 | sys.path.insert(0, dirname(dirname(realpath(__file__)))) | ||
21 | del dirname, realpath | ||
22 | |||
23 | from site_builder import build_all | ||
24 | from site_builder.blogbuilder import build_blog | ||
25 | |||
26 | if __name__ == '__main__': | ||
27 | args = sys.argv[1:] | ||
28 | |||
29 | if len(args) != 3: | ||
30 | print "{0} (blog|site) input_dir output_dir".format(sys.argv[0]) | ||
31 | sys.exit(1) | ||
32 | else: | ||
33 | action, input_dir, output_dir = args | ||
34 | |||
35 | if action == 'site': | ||
36 | build_all(input_dir, output_dir) | ||
37 | elif action == 'blog': | ||
38 | build_blog(input_dir, output_dir) | ||
diff --git a/metabuild.py b/metabuild.py deleted file mode 100755 index 6508cbb..0000000 --- a/metabuild.py +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | #!/usr/bin/env python | ||
2 | # vim: set filencoding=utf8 | ||
3 | """ | ||
4 | Website Build Script | ||
5 | |||
6 | @author: Mike Crute (mcrute@ag.com) | ||
7 | @organization: American Greetings Interactive | ||
8 | @date: June 03, 2010 | ||
9 | |||
10 | TODO: | ||
11 | * Site Map Builder | ||
12 | * Full Blog Builder | ||
13 | * Index page | ||
14 | * Archive page | ||
15 | * Feeds | ||
16 | """ | ||
17 | |||
18 | if __name__ == '__main__': | ||
19 | from site_builder import build_all | ||
20 | from site_builder.blogbuilder import build_blog | ||
21 | build_all('page_source', 'rendered') | ||
22 | build_blog('page_source/blog', 'rendered/blog') | ||
23 | build_blog('page_source/personal_blog', 'rendered/personal_blog') | ||