1
0
Fork 0
mirror of https://github.com/Oreolek/gamebookformat.git synced 2024-06-26 03:41:04 +03:00

Flag --random instead of --seed.

Hoping that will be slightly easier to understand.
This commit is contained in:
Pelle Nilsson 2013-06-14 07:00:05 +02:00
parent 155c0ab2f3
commit d1845d2a1a
3 changed files with 11 additions and 10 deletions

View file

@ -12,22 +12,22 @@ txt: $(examples:.gamebook=.txt)
uploadto=$(shell cat .uploadto)
%.rtf: %.gamebook *.py templates/rtf/*.rtf
./formatgamebook.py --seed=1 $< $@
./formatgamebook.py --random=1 $< $@
%.html: %.gamebook *.py templates/html/*.html
./formatgamebook.py --seed=1 $< $@
./formatgamebook.py --random=1 $< $@
%.tex: %.gamebook *.py templates/tex/*.tex
./formatgamebook.py --seed=1 $< $@
./formatgamebook.py --random=1 $< $@
%.dot: %.gamebook *.py templates/dot/*.dot
./formatgamebook.py --seed=1 $< $@
./formatgamebook.py --random=1 $< $@
%.debug: %.gamebook *.py templates/debug/*.debug
./formatgamebook.py --seed=1 $< $@
./formatgamebook.py --random=1 $< $@
%.txt: %.gamebook *.py templates/txt/*.txt
./formatgamebook.py --seed=1 $< $@
./formatgamebook.py --random=1 $< $@
%.pdf: %.tex
cd $(dir $<) && pdflatex $(notdir $<) && pdflatex $(notdir $<)

View file

@ -189,8 +189,9 @@ if __name__ == '__main__':
action='append', help='add custom template dir')
ap.add_argument('-y', '--verify', action='store_true',
help='verify gamebook structure')
ap.add_argument('-s', '--seed', action='store', default=None,
help='random seed for shuffling sections')
ap.add_argument('-r', '--random', action='store', default=None,
metavar='R',
help='random number seed for shuffling sections')
args = ap.parse_args()
templatedirs = ['templates',
os.path.join(os.path.dirname(sys.argv[0]), 'templates')]
@ -202,4 +203,4 @@ if __name__ == '__main__':
args.import_default_map_file,
templatedirs,
args.verify,
args.seed)
args.random)

View file

@ -15,7 +15,7 @@ gamebook on paper or a screen (or for debugging it).
: -M, --no-default-map ignore default map file
: -t D, --template D add custom template dir
: -y, --verify verify gamebook structure
: -s SEED, --seed=SEED random seed for shuffling sections
: -r R, --random=R random number seed for shuffling sections
** Supported Output Formats