Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new library with useful structures #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
bin/*
lib/*
lib/trie/*
lib/zstructs/*
Makefile
tags
itmmorgue.log
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "lib/trie"]
path = lib/trie
url = https://github.com/ValeriyKr/trie
[submodule "lib/zstructs"]
path = lib/zstructs
url = https://github.com/zhmylove/zstructs
12 changes: 7 additions & 5 deletions configure
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# vim: sw=4 ts=4 et :
# vim: sw=4 ts=4 noet list lcs=tab\:>- :

exec >&2

Expand All @@ -14,7 +14,7 @@ SRC="$SRC connection.c levels.c tiles.c player.c event.c"
HDR='itmmorgue.h client.h config.h default_config.h stuff.h windows.h'
HDR="$HDR area.h chat.h keyboard.h server.h protocol.h sysmsg.h"
HDR="$HDR connection.h levels.h tiles.h player.h event.h"
LIB='trie/trie.o'
LIB='trie/trie.o zstructs/pst.o zstructs/kdh.o'
DEBUG=1
####################################################################

Expand Down Expand Up @@ -124,15 +124,17 @@ else
echo FAIL
fi

# Check for lib/trie/Makefile
printf "Checking lib/trie/Makefile..."
if ls lib/trie/Makefile >/dev/null 2>&1 ;then
# Check for lib Makefiles
for lib in lib/* ;do
printf "Checking $lib/Makefile..."
if ls "$lib/Makefile" >/dev/null 2>&1 ;then
echo OK
else
echo FAIL
echo ' git submodule update --init'
exit 1
fi
done

# Remove stale files
rm -f bin/style.o bin/ncursesw.c bin/ncursesw
Expand Down
1 change: 1 addition & 0 deletions lib/zstructs
Submodule zstructs added at 7dd367