|
|
|
|
@ -6,7 +6,7 @@
|
|
|
|
|
# |
|
|
|
|
# This program is free software; you can redistribute it and/or modify |
|
|
|
|
# it under the terms of the GNU General Public License as published by |
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or |
|
|
|
|
# the Free Software Foundation; either version 3 of the License, or |
|
|
|
|
# (at your option) any later version. |
|
|
|
|
# |
|
|
|
|
# This program is distributed in the hope that it will be useful, |
|
|
|
|
@ -28,8 +28,7 @@ sigal is yet another python script to prepare a static gallery of images:
|
|
|
|
|
""" |
|
|
|
|
|
|
|
|
|
__author__ = "Saimon (contact at saimon dot org)" |
|
|
|
|
__version__ = "0.1" |
|
|
|
|
__date__ = "20110513" |
|
|
|
|
__version__ = "0.1-dev" |
|
|
|
|
__copyright__ = "Copyright (C) 2009-2012 - saimon.org" |
|
|
|
|
__license__ = "GPL" |
|
|
|
|
|
|
|
|
|
@ -43,17 +42,15 @@ from sigal.theme import Theme
|
|
|
|
|
def main(): |
|
|
|
|
"main program" |
|
|
|
|
|
|
|
|
|
version = "version %s, %s" % (__version__, __date__) |
|
|
|
|
|
|
|
|
|
parser = argparse.ArgumentParser(description='simple static gallery generator.') |
|
|
|
|
parser.add_argument('input_dir', help='input directory') |
|
|
|
|
parser.add_argument('output_dir', help='output directory') |
|
|
|
|
parser.add_argument('--version', action='version', |
|
|
|
|
version="%(prog)s " + version) |
|
|
|
|
version="%(prog)s version " + __version__) |
|
|
|
|
parser.add_argument('-c', '--copyright', |
|
|
|
|
help="copyright message added to the images") |
|
|
|
|
parser.add_argument("-f", "--force", action='store_true', |
|
|
|
|
help="force the reprocessing of existing images and thumbnails") |
|
|
|
|
help="force the reprocessing of existing images") |
|
|
|
|
|
|
|
|
|
args = parser.parse_args() |
|
|
|
|
|
|
|
|
|
@ -73,10 +70,3 @@ def main():
|
|
|
|
|
|
|
|
|
|
r = Theme(params, args.output_dir) |
|
|
|
|
r.render() |
|
|
|
|
|
|
|
|
|
return 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
|
|
status = main() |
|
|
|
|
sys.exit(status) |
|
|
|
|
|