Skip to content

Commit 0ee5493

Browse files
authored
Merge pull request #1698 from nexB/1685-elf-lkm-clue-feature
Analyze ELFs and LKMs source code #1685 Signed-off-by: Philippe Ombredanne <[email protected]>
2 parents d5b6650 + 3d2434d commit 0ee5493

File tree

94 files changed

+5576
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+5576
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/build/
2+
/dist/

plugins/scancode-ctags-macosx_10_9_intel/LICENSE.txt

Lines changed: 340 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
graft src
2+
3+
include setup.py
4+
include setup.cfg
5+
include .gitignore
6+
include README.md
7+
include MANIFEST.in
8+
9+
global-exclude *.py[co] __pycache__ *.*~
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
A scanCode plugin to provide binaries of ctags command
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[metadata]
2+
license_file = LICENSE.txt
3+
4+
[aliases]
5+
release = clean --all bdist_wheel --plat-name macosx_10_9_intel --python-tag py2.py3
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#!/usr/bin/env python
2+
# -*- encoding: utf-8 -*-
3+
4+
from __future__ import absolute_import
5+
from __future__ import print_function
6+
7+
from glob import glob
8+
from os.path import basename
9+
from os.path import join
10+
from os.path import splitext
11+
12+
from setuptools import find_packages
13+
from setuptools import setup
14+
15+
16+
desc = '''A ScanCode path provider plugin to provide a prebuilt native ctags binary.'''
17+
18+
setup(
19+
name='scancode-ctags',
20+
version='1.0.0',
21+
license='gpl',
22+
description=desc,
23+
long_description=desc,
24+
author='nexB',
25+
author_email='[email protected]',
26+
url='https://github.com/nexB/scancode-toolkit/plugins',
27+
packages=find_packages('src'),
28+
package_dir={'': 'src'},
29+
py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')],
30+
include_package_data=True,
31+
zip_safe=False,
32+
classifiers=[
33+
# complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
34+
'Development Status :: 5 - Production/Stable',
35+
'Intended Audience :: Developers',
36+
'Topic :: Utilities',
37+
],
38+
keywords=[
39+
'open source', 'scancode', 'ctags'
40+
],
41+
entry_points={
42+
'scancode_location_provider': [
43+
'scancode-ctags = scancode_ctags:CtagsPaths',
44+
],
45+
},
46+
)
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#
2+
# Copyright (c) 2019 nexB Inc. and others. All rights reserved.
3+
# http://nexb.com and https://github.com/nexB/scancode-toolkit/
4+
# The ScanCode software is licensed under the Apache License version 2.0.
5+
# Data generated with ScanCode require an acknowledgment.
6+
# ScanCode is a trademark of nexB Inc.
7+
#
8+
# You may not use this software except in compliance with the License.
9+
# You may obtain a copy of the License at: http://apache.org/licenses/LICENSE-2.0
10+
# Unless required by applicable law or agreed to in writing, software distributed
11+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
12+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
13+
# specific language governing permissions and limitations under the License.
14+
#
15+
# When you publish or redistribute any data created with ScanCode or any ScanCode
16+
# derivative work, you must accompany this data with the following acknowledgment:
17+
#
18+
# Generated with ScanCode and provided on an "AS IS" BASIS, WITHOUT WARRANTIES
19+
# OR CONDITIONS OF ANY KIND, either express or implied. No content created from
20+
# ScanCode should be considered or used as legal advice. Consult an Attorney
21+
# for any legal advice.
22+
# ScanCode is a free software code scanning tool from nexB Inc. and others.
23+
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.
24+
25+
from __future__ import absolute_import
26+
from __future__ import unicode_literals
27+
28+
from os.path import abspath
29+
from os.path import dirname
30+
from os.path import join
31+
32+
from plugincode.location_provider import LocationProviderPlugin
33+
from plugincode.location_provider import location_provider_impl
34+
35+
36+
from plugincode.location_provider import LocationProviderPlugin
37+
from plugincode.location_provider import location_provider_impl
38+
39+
40+
class CtagsPaths(LocationProviderPlugin):
41+
def get_locations(self):
42+
curr_dir = dirname(abspath(__file__))
43+
locations = {
44+
'scancode.ctags.lib': join(curr_dir, 'bin'),
45+
'scancode.ctags.exe': join(curr_dir, 'bin', 'ctags'),
46+
}
47+
return locations
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/build/
2+
/dist/

0 commit comments

Comments
 (0)