fix gitignore to avoid ignoring subfolders. add missing lua file

This commit is contained in:
Emil Tin 2012-12-20 22:12:07 +01:00
parent ce43b09991
commit 09e331a76b
2 changed files with 26 additions and 13 deletions

26
.gitignore vendored
View File

@ -54,23 +54,23 @@ stxxl.errlog
# compiled protobuffers #
#########################
DataStructures/pbf-proto/*.pb.h
DataStructures/pbf-proto/*.pb.cc
/DataStructures/pbf-proto/*.pb.h
/DataStructures/pbf-proto/*.pb.cc
# External Libs #
#################
lib/
win/lib
/lib/
/win/lib
# Visual Studio Temp + build Files #
####################################
win/*.user
win/*.ncb
win/*.suo
win/Debug/
win/Release/
win/bin/
win/bin-debug/
/win/*.user
/win/*.ncb
/win/*.suo
/win/Debug/
/win/Release/
/win/bin/
/win/bin-debug/
/osrm-extract
/osrm-routed
/osrm-prepare
@ -78,6 +78,6 @@ win/bin-debug/
# Sandbox folder #
###################
sandbox/
/sandbox/
test/profile.lua
/test/profile.lua

13
profiles/lib/access.lua Normal file
View File

@ -0,0 +1,13 @@
local ipairs = ipairs
module "Access"
function find_access_tag(source,access_tags_hierachy)
for i,v in ipairs(access_tags_hierachy) do
local tag = source.tags:Find(v)
if tag ~= '' then
return tag
end
end
return nil
end