aboutsummaryrefslogtreecommitdiffstats
path: root/gpp.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-02-27 10:57:22 +0100
committerMattias Andrée <maandree@kth.se>2021-02-27 11:02:02 +0100
commitb83198852fb7d91a3af9d826b8a9abc30d1411b9 (patch)
treeb7f3cbf211695d6e819851226216bf7665dfe1f6 /gpp.py
parentAdd include path example (diff)
downloadgpp-b83198852fb7d91a3af9d826b8a9abc30d1411b9.tar.gz
gpp-b83198852fb7d91a3af9d826b8a9abc30d1411b9.tar.bz2
gpp-b83198852fb7d91a3af9d826b8a9abc30d1411b9.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rwxr-xr-xgpp.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/gpp.py b/gpp.py
index 7bdf09d..68a317f 100755
--- a/gpp.py
+++ b/gpp.py
@@ -1,24 +1,5 @@
#!@{SHEBANG}
# -*- coding: utf-8 -*-
-copyright = '''
-gpp – Bash-based general-purpose preprocessor
-
-Copyright © 2013, 2014, 2015, 2017 Mattias Andrée (maandree@member.fsf.org)
-
-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 3 of the License, or
-(at your option) any later version.
-
-This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
-'''
-VERSION="@{VERSION}"
import os
import sys
@@ -72,12 +53,6 @@ for i in range(1, len(args)):
export += '=1'
export = (export.split('=')[0], '='.join(export.split('=')[1:]))
os.putenv(export[0], export[1])
- elif arg in ('-v', '--version'):
- print('gpp ' + VERSION)
- sys.exit(0)
- elif arg in ('-c', '--copying'):
- print(copyright[1:-1])
- sys.exit(0)
else:
continue
i += 1