Skip to content

Commit

Permalink
Restore Zotero build
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Oct 3, 2015
1 parent 0e439da commit 0d40081
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,10 @@ def validate(self):
default=False,
action="store_true",
help='Create the citeproc.js bundle and exit.')
parser.add_option("-Z", "--zotero-bundle-only", dest="makezoterobundle",
default=False,
action="store_true",
help='Create a citeproc_zotero.js bundle with embedded dom (not e4x) support suitable for use in most environments, and exit.')

(opt, args) = parser.parse_args()

Expand All @@ -706,6 +710,8 @@ def validate(self):
bundlecount = 0
if opt.makebundle:
bundlecount += 1
if opt.makezoterobundle:
bundlecount += 1

if bundlecount > 1:
print parser.print_help()
Expand All @@ -720,7 +726,16 @@ def validate(self):
license.apply()
sys.exit()

if opt.makezoterobundle:
bundler = Bundle(mode="zotero")
bundler.deleteOldBundle()
bundler.createNewBundle()
license = ApplyLicense()
license.apply(True)
sys.exit()

if not opt.teststyles and not opt.testrun and not opt.grind and not opt.cranky and not opt.processor and not opt.bundle:

parser.print_help()
sys.exit()

Expand Down

0 comments on commit 0d40081

Please sign in to comment.