Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: patchconv/patchconv.py

Issue 29405623: Noissue - Make it possible to run the patchconv script without installing it (Closed)
Patch Set: Make the script executable Created April 7, 2017, 10:34 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: patchconv/patchconv.py
===================================================================
old mode 100644
new mode 100755
--- a/patchconv/patchconv.py
+++ b/patchconv/patchconv.py
@@ -1,8 +1,10 @@
+#!/usr/bin/env python
+
# This file is part of Adblock Plus <https://adblockplus.org/>,
# Copyright (C) 2006-2017 eyeo GmbH
#
# Adblock Plus is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# Adblock Plus is distributed in the hope that it will be useful,
@@ -69,8 +71,12 @@
yield GIT_PART_HEAD.format(new_name, new_name)
yield line
state = NORMAL
def main():
for line in rietveld_to_git(sys.stdin):
sys.stdout.write(line)
+
+
+if __name__ == '__main__':
+ main()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld