fix gitignore to avoid ignoring subfolders. add missing lua file
This commit is contained in:
parent
ce43b09991
commit
09e331a76b
26
.gitignore
vendored
26
.gitignore
vendored
@ -54,23 +54,23 @@ stxxl.errlog
|
|||||||
|
|
||||||
# compiled protobuffers #
|
# compiled protobuffers #
|
||||||
#########################
|
#########################
|
||||||
DataStructures/pbf-proto/*.pb.h
|
/DataStructures/pbf-proto/*.pb.h
|
||||||
DataStructures/pbf-proto/*.pb.cc
|
/DataStructures/pbf-proto/*.pb.cc
|
||||||
|
|
||||||
# External Libs #
|
# External Libs #
|
||||||
#################
|
#################
|
||||||
lib/
|
/lib/
|
||||||
win/lib
|
/win/lib
|
||||||
|
|
||||||
# Visual Studio Temp + build Files #
|
# Visual Studio Temp + build Files #
|
||||||
####################################
|
####################################
|
||||||
win/*.user
|
/win/*.user
|
||||||
win/*.ncb
|
/win/*.ncb
|
||||||
win/*.suo
|
/win/*.suo
|
||||||
win/Debug/
|
/win/Debug/
|
||||||
win/Release/
|
/win/Release/
|
||||||
win/bin/
|
/win/bin/
|
||||||
win/bin-debug/
|
/win/bin-debug/
|
||||||
/osrm-extract
|
/osrm-extract
|
||||||
/osrm-routed
|
/osrm-routed
|
||||||
/osrm-prepare
|
/osrm-prepare
|
||||||
@ -78,6 +78,6 @@ win/bin-debug/
|
|||||||
|
|
||||||
# Sandbox folder #
|
# Sandbox folder #
|
||||||
###################
|
###################
|
||||||
sandbox/
|
/sandbox/
|
||||||
|
|
||||||
test/profile.lua
|
/test/profile.lua
|
13
profiles/lib/access.lua
Normal file
13
profiles/lib/access.lua
Normal 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
|
Loading…
Reference in New Issue
Block a user