Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

License text formatting

  • Loading branch information...
commit 9d4b8105c501c8f02707db957f467941e902d1c7 1 parent 800ad57
@ginatrapani ginatrapani authored
View
32 extras/scripts/header_content.txt
@@ -1,16 +1,16 @@
-*
-* LICENSE:
-*
-* This file is part of ThinkUp (http://thinkupapp.com).
-*
-* ThinkUp 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 (at your option) any
-* later version.
-*
-* ThinkUp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
-* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
-* details.
-*
-* You should have received a copy of the GNU General Public License along with ThinkUp. If not, see
-* <http://www.gnu.org/licenses/>.
-*
+ *
+ * LICENSE:
+ *
+ * This file is part of ThinkUp (http://thinkupapp.com).
+ *
+ * ThinkUp 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 (at your option) any
+ * later version.
+ *
+ * ThinkUp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
+ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License along with ThinkUp. If not, see
+ * <http://www.gnu.org/licenses/>.
+ *
View
10 extras/scripts/lic_header.sample.py
@@ -62,7 +62,7 @@ def update_source(filename, shortfn, copyright):
isUTF = False
nl = get_copyright_namelist(filename, False)
filename_str = filename.replace(THINKUP_HOME, "ThinkUp")
- copyright_str = "* " + filename_str + "\n*\n* Copyright (c) 2009-2010 " + nl +"\n"
+ copyright_str = " * " + filename_str + "\n *\n * Copyright (c) 2009-2010 " + nl +"\n"
phpHeader = ""
if (fdata.startswith(utfstr)):
@@ -75,7 +75,7 @@ def update_source(filename, shortfn, copyright):
tempfn = "/tmp" + shortfn
nla = get_copyright_namelist(filename, True)
nlc = get_copyright_namelist(filename, False)
- fdata = phpHeader + "/**\n*\n" + copyright_str + copyright + build_docblock(nla, nlc) + fdata
+ fdata = phpHeader + "/**\n *\n" + copyright_str + copyright + build_docblock(nla, nlc) + fdata
if (isUTF):
file(tempfn,"w").write(utfstr+fdata)
else:
@@ -115,12 +115,12 @@ def recursive_traversal(dir, copyright):
def build_docblock(nla, nlc):
if nla is not "":
nla += "\n"
- docblock = ("%s" + build_docblock_lic_copy(nlc) +"*/\n") % (nla,)
+ docblock = ("%s" + build_docblock_lic_copy(nlc) +" */\n") % (nla,)
return docblock
def build_docblock_lic_copy(nl):
global license_line
- return "* @license %s\n* @copyright 2009-2010 %s\n" % (license_line, nl)
+ return " * @license %s\n * @copyright 2009-2010 %s\n" % (license_line, nl)
def get_copyright_namelist(filename, emailsp):
@@ -149,7 +149,7 @@ def numstrip(line, emailsp):
if (emailsp):
nl = nl.replace("@", "[at]")
nl = nl.replace(".", "[dot]")
- nl = "* @author " + nl
+ nl = " * @author " + nl
return nl
Please sign in to comment.
Something went wrong with that request. Please try again.