From 5826d2f0047c2f0d46f7b672adab87f267854f30 Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Fri, 25 Sep 2009 14:38:01 +0200 Subject: [PATCH] Nicer output or irpf90_entities Version:1.1.27 --- packages/Makefile | 9 ++++++++- src/create_man.py | 12 +++++++----- src/version.py | 2 +- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/packages/Makefile b/packages/Makefile index 8d7c7ea..34a050b 100644 --- a/packages/Makefile +++ b/packages/Makefile @@ -11,7 +11,14 @@ default: cp noarch/.rpmmacros ~;\ mv noarch/*.tar.gz . ;\ mv noarch/*.rpm . ;\ - rm -rf noarch + rm -rf noarch;\ + NAME=`basename *.rpm .rpm`;\ + cd ..;\ + git archive --format=tar --prefix=irpf90/ HEAD | gzip > $$OLDPWD/$$NAME-src.tar.gz;\ + cd -;\ + ls $$NAME*;\ + + version: ../src/version.py ./make_version.py > version diff --git a/src/create_man.py b/src/create_man.py index 1c5f5c7..c9b6434 100644 --- a/src/create_man.py +++ b/src/create_man.py @@ -34,9 +34,9 @@ from util import * def do_print_short(file,var): assert isinstance(var,Variable) print >>file, "%s : %s :: %s %s"%( \ - var.line.filename[0], - var.type, - var.name, + var.line.filename[0].ljust(25), + var.type.ljust(25), + var.name.ljust(25), build_dim(var.dim) ) ###################################################################### @@ -97,10 +97,12 @@ def do_print(var): def run(): import parsed_text file = open("irpf90_entities","w") - for v in variables.keys(): + l = variables.keys() + l.sort() + for v in l: do_print_short(file,variables[v]) file.close() - for v in variables.keys(): + for v in l: do_print(variables[v]) ###################################################################### diff --git a/src/version.py b/src/version.py index e23bc06..d3ed8a2 100644 --- a/src/version.py +++ b/src/version.py @@ -1 +1 @@ -version = "1.1.26" +version = "1.1.27"