Skip to content

Commit

Permalink
Add license info to auto-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Mar 21, 2024
1 parent 13065af commit 36c6bfb
Show file tree
Hide file tree
Showing 78 changed files with 281 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: CapstoneEngine
Upstream-Contact: <>
Source: https://github.com/capstone-engine/capstone

# Sample paragraph, commented out:
#
# Files: src/*
# Copyright: $YEAR $NAME <$CONTACT>
# License: ...
20 changes: 20 additions & 0 deletions .reuse/reuse-bak/dep5
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: CapstoneEngine
Source: https://github.com/capstone-engine/capstone

Files: src/autosync/cpptranslator/Tests/test_config.json
Copyright: 2022 Rot127 <[email protected]>
License: BSD-3

Files: src/autosync/cpptranslator/arch_config.json
Copyright: 2022 Rot127 <[email protected]>
License: BSD-3

Files: src/autosync/cpptranslator/saved_patches.json
Copyright: 2022 Rot127 <[email protected]>
License: BSD-3

Files: src/autosync/path_vars.json
Copyright: 2022 Rot127 <[email protected]>
License: BSD-3

9 changes: 9 additions & 0 deletions .reuse/reuse-bak/templates/license-template.jinja2
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{% for copyright_line in copyright_lines %}
{{ copyright_line }}
{% endfor %}
{% for contributor_line in contributor_lines %}
SPDX-FileContributor: {{ contributor_line }}
{% endfor %}
{% for expression in spdx_expressions %}
SPDX-License-Identifier: {{ expression }}
{% endfor %}
11 changes: 11 additions & 0 deletions LICENSES/BSD-3-Clause.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Copyright (c) <year> <owner>.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6 changes: 6 additions & 0 deletions suite/auto-sync/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
Copyright © 2022 Rot127 <[email protected]>
Copyright © 2024 2022 Rot127 <[email protected]>
SPDX-License-Identifier: BSD-3
-->

# Architecture updater

This is Capstones updater for some architectures.
Expand Down
4 changes: 4 additions & 0 deletions suite/auto-sync/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright © 2022 Rot127 <[email protected]>
# Copyright © 2024 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

[project]
name = "autosync"
version = "0.1.0"
Expand Down
3 changes: 3 additions & 0 deletions suite/auto-sync/src/autosync/ASUpdater.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env python3

# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

import argparse

import logging as log
Expand Down
3 changes: 3 additions & 0 deletions suite/auto-sync/src/autosync/HeaderPatcher.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env python3

# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

import argparse
import logging as log
import re
Expand Down
3 changes: 3 additions & 0 deletions suite/auto-sync/src/autosync/Helper.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

import hashlib
import logging as log
import shutil
Expand Down
3 changes: 3 additions & 0 deletions suite/auto-sync/src/autosync/IncGenerator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env python3

# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

import logging as log
import os
import re
Expand Down
3 changes: 3 additions & 0 deletions suite/auto-sync/src/autosync/PathVarHandler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

import json
import logging as log
import re
Expand Down
3 changes: 3 additions & 0 deletions suite/auto-sync/src/autosync/cpptranslator/Configurator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

import json
import logging as log
from pathlib import Path
Expand Down
4 changes: 4 additions & 0 deletions suite/auto-sync/src/autosync/cpptranslator/CppTranslator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python3

# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

import argparse
import logging as log
import sys
Expand Down
4 changes: 4 additions & 0 deletions suite/auto-sync/src/autosync/cpptranslator/Differ.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python3

# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

import argparse
import difflib as dl
import json
Expand Down
5 changes: 5 additions & 0 deletions suite/auto-sync/src/autosync/cpptranslator/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
Copyright © 2022 Rot127 <[email protected]>
SPDX-License-Identifier: BSD-3
-->

# C++ Translator

Capstone uses source files from LLVM to disassemble opcodes.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

import logging as log
import re
from pathlib import Path
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env python3

# Copyright © 2022 Rot127 <[email protected]>
# SPDX-FileCopyrightText: 2024 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3
# SPDX-License-Identifier: LGPL-3.0-only

import unittest
from pathlib import Path

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

import logging as log
import re

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Helper import get_text
Expand Down
3 changes: 3 additions & 0 deletions suite/auto-sync/src/autosync/cpptranslator/patches/Assert.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Patch import Patch
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Helper import get_text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Helper import get_text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Patch import Patch
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

import logging as log
import re

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Helper import get_text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Helper import get_text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Helper import get_text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

import re

from tree_sitter import Node
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

import re

from tree_sitter import Node
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Helper import get_capture_node, get_text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Helper import get_text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Patch import Patch
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Patch import Patch
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Patch import Patch
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Helper import get_MCInst_var_name, get_text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Patch import Patch
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

import logging as log
import re

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Helper import get_text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Helper import get_text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Helper import get_text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Helper import get_capture_node, get_text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Helper import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Helper import get_capture_node, get_text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Helper import get_MCInst_var_name, get_text
Expand Down
3 changes: 3 additions & 0 deletions suite/auto-sync/src/autosync/cpptranslator/patches/Helper.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

import logging as log
import re

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

import logging as log

from tree_sitter import Node
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Helper import get_text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Helper import get_text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Helper import get_text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2022 Rot127 <[email protected]>
# SPDX-License-Identifier: BSD-3

from tree_sitter import Node

from autosync.cpptranslator.patches.Helper import get_text
Expand Down
Loading

0 comments on commit 36c6bfb

Please sign in to comment.