From d4f8e2afe1f7759f5cb0dd8eb4bf969a6f584aa1 Mon Sep 17 00:00:00 2001 From: Mike Linksvayer Date: Fri, 26 Feb 2021 13:47:53 -0800 Subject: [PATCH] license-list-XML as submodule and further monkeypatch licensee to use it --- .gitmodules | 3 +++ _config.yml | 1 + license-list-XML | 1 + spec/spec_helper.rb | 3 +++ 4 files changed, 8 insertions(+) create mode 100644 .gitmodules create mode 160000 license-list-XML diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..36e3304 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "license-list-XML"] + path = license-list-XML + url = https://github.com/spdx/license-list-XML.git diff --git a/_config.yml b/_config.yml index 14ec7a7..a75f55c 100644 --- a/_config.yml +++ b/_config.yml @@ -34,6 +34,7 @@ exclude: - assets/vendor/selectivizr/tests - assets/vendor/clipboard/test - assets/vendor/*/README.* + - license-list-XML plugins: - jekyll-sitemap diff --git a/license-list-XML b/license-list-XML new file mode 160000 index 0000000..b7470fc --- /dev/null +++ b/license-list-XML @@ -0,0 +1 @@ +Subproject commit b7470fcd383d59c95187af07b66b926e4ca23201 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 60a2012..00285b8 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -139,6 +139,9 @@ module Licensee dir = ::File.dirname(__FILE__) ::File.expand_path '../_licenses', dir end + def spdx_dir + ::File.expand_path '../license-list-XML/src', __dir__ + end end end end