diff options
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | README | 6 | ||||
-rw-r--r-- | gpp.1 | 6 | ||||
-rwxr-xr-x | gpp.py | 25 |
4 files changed, 2 insertions, 39 deletions
@@ -7,13 +7,13 @@ PKGNAME = gpp COMMAND = gpp PY = python -SHEBANG = /usr$(BIN)/env $(PY) +SHEBANG = /usr/bin/env $(PY) all: gpp gpp: gpp.py - env VERSION='$(VERSION)' SHEBANG='$(SHEBANG)' $(PY) "$<" < "$<" > "$@" + env SHEBANG='$(SHEBANG)' $(PY) gpp.py < gpp.py > $@ install: gpp install -dm755 -- "$(DESTDIR)$(PREFIX)/bin" @@ -73,12 +73,6 @@ OPTIONS Set the environment variable NAME to hold the value 1. - -v, --version - Print program name and version and exit. - - -c, --copying - Print copyright notice and exit. - Short options must be joined. The value of a flag must be in a separate argument from the flag itself. @@ -105,12 +105,6 @@ the value \fIVALUE\fP. .BR \-D ,\ \-\-export \ \fINAME\fP Set the environment variable \fINAME\fP to hold the value 1. -.TP -.BR \-v ,\ \-\-version -Print program name and version and exit. -.TP -.BR \-c ,\ \-\-copying -Print copyright notice and exit. .PP Short options must be joined. The value of a flag must be in a separate argument from the flag itself. @@ -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 |