Skip to content

Commit

Permalink
Implemented lua script to verify recipes in JSON.
Browse files Browse the repository at this point in the history
  • Loading branch information
CIB committed Mar 25, 2014
1 parent 711cac2 commit 95a9d20
Show file tree
Hide file tree
Showing 3 changed files with 956 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -318,13 +318,15 @@ $(TARGET): $(ODIR) $(DDIR) $(OBJS)
$(LD) $(W32FLAGS) -o $(TARGET) $(DEFINES) $(CXXFLAGS) \
$(OBJS) $(LDFLAGS)

.PHONY: version
.PHONY: version verifyjson
version:
@( VERSION_STRING=$(VERSION) ; \
[ -e ".git" ] && GITVERSION=$$( git describe --tags --always --dirty --match "[0-9A-Z]*.[0-9A-Z]*" ) && VERSION_STRING=$$GITVERSION ; \
[ -e "$(SRC_DIR)/version.h" ] && OLDVERSION=$$(grep VERSION $(SRC_DIR)/version.h|cut -d '"' -f2) ; \
if [ "x$$VERSION_STRING" != "x$$OLDVERSION" ]; then echo "#define VERSION \"$$VERSION_STRING\"" | tee $(SRC_DIR)/version.h ; fi \
)
verifyjson:
lua lua/json_verifier.lua

$(ODIR):
mkdir -p $(ODIR)
Expand Down
Loading

0 comments on commit 95a9d20

Please sign in to comment.