Make the build Python-2/3 agnostic.

This commit is contained in:
Jason S. Ninneman 2017-07-11 15:54:16 -07:00 committed by Eric S. Raymond
parent b5e8eec80e
commit b8dd0eb904
3 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,9 @@
= Installing Open Adventure =
The instructions below assume your system uses Python 3 by default,
but the actual Python code in Open Adventure is 2/3 agnostic. Adjust
the example commands below accordingly.
1. Install PyYAML for Python 3 (which requires Python 3), and libedit
(aka: editline) on your system.

View file

@ -40,7 +40,7 @@ dungeon.o: dungeon.c dungeon.h
$(CC) $(CCFLAGS) $(DBX) -c dungeon.c
dungeon.c dungeon.h: make_dungeon.py adventure.yaml
python3 make_dungeon.py
./make_dungeon.py
clean:
rm -f *.o advent cheat *.html *.gcno *.gcda

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python
# This is the open-adventure dungeon generator. It consumes a YAML description of
# the dungeon and outputs a dungeon.h and dungeon.c pair of C code files.