-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
93 changed files
with
4,799 additions
and
1,460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
SOM | ||
som | ||
mitre | ||
mis | ||
tread | ||
elease | ||
tREAD | ||
tRead | ||
tRead |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# GitHub Action to automate the identification of common misspellings in text files. | ||
# https://github.com/codespell-project/actions-codespell | ||
# https://github.com/codespell-project/codespell | ||
name: codespell | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
pull_request: | ||
branches: | ||
- main | ||
- master | ||
|
||
permissions: | ||
contents: read # to fetch code (actions/checkout) | ||
jobs: | ||
codespell: | ||
name: Check for spelling errors | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: codespell-project/actions-codespell@v1 # v1.0 | ||
with: | ||
check_filenames: true | ||
skip: .git,deps | ||
ignore_words_file: .codespell-ignore.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/sh | ||
|
||
# Check the project CMake for options, which are not described in the README_BUILD.md file | ||
# At the same time, check to make sure the defaults are described properly. | ||
|
||
error=0 | ||
|
||
options() { | ||
for file in $(find ./ -not \( -path ./deps -prune \) -name CMakeLists.txt) | ||
do | ||
grep option[[:space:]]*\( "${file}" | \ | ||
sed -e "s/^[[:space:]]*//g" -e "s/(/ /g" | \ | ||
awk '{print $2}' | ||
done | sort | uniq | ||
} | ||
|
||
for opt in $(options) | ||
do | ||
default=$(for file in $(find ./ -not \( -path ./deps -prune \) -name CMakeLists.txt) | ||
do | ||
grep "option[[:space:]]*(${opt} " "${file}" | \ | ||
sed -e "s/^[[:space:]]*//g" -e "s/)[[:space:]]*$//" | \ | ||
awk '{print $NF}' | ||
done) | ||
if ! grep -q "${opt}.*${default}" README_BUILD.md ; then | ||
echo "no match with ${opt} set with ${default}" | ||
grep -R "${opt}" ./* | ||
error=1 | ||
fi | ||
done | ||
|
||
if [ "${error}" -eq "1" ] ; then | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/bash -xe | ||
|
||
# Extract tar.gz to temp folder | ||
tarname=$(find . -maxdepth 1 -name '*.tar.gz') | ||
if [ -z "${tarname}" ]; then | ||
echo "tar.gz not found" | ||
exit 1 | ||
fi | ||
# Remove .tar.gz from filename | ||
subfoldername=$(echo "${tarname}" | rev | cut -b 8- | rev) | ||
|
||
mkdir -p temp_tar | ||
tar -xzf "${tarname}" -C temp_tar | ||
mv "temp_tar/${subfoldername}" temp | ||
cd temp | ||
|
||
deps_dir=Library/Frameworks/iio.framework/Versions/Current/Dependencies | ||
libiio_loc=Library/Frameworks/iio.framework/Versions/Current/iio | ||
libiioheader_loc=Library/Frameworks/iio.framework/Versions/Current/Headers/iio.h | ||
|
||
mkdir -p "${deps_dir}" | ||
|
||
# Create links to framework files | ||
mkdir -p usr/local/{lib,include} | ||
ln -fs "../../../${libiio_loc}" usr/local/lib/libiio.dylib | ||
ln -fs "../../../${libiioheader_loc}" usr/local/include/iio.h | ||
|
||
# Update rpath of library | ||
install_name_tool -add_rpath @loader_path/. "${libiio_loc}" | ||
|
||
# Copy dependent libs to local libs, and update rpath of dependencies | ||
for each in $(otool -L "${libiio_loc}" |grep homebrew |cut -f2 | cut -d' ' -f1) ; do | ||
name=$(basename "${each}") | ||
cp "${each}" "${deps_dir}" | ||
chmod +w "${deps_dir}/${name}" | ||
install_name_tool -id "@rpath/Dependencies/${name}" "${deps_dir}/${name}" | ||
install_name_tool -change "${each}" "@rpath/Dependencies/${name}" "${libiio_loc}" | ||
codesign --force -s - "${deps_dir}/${name}" | ||
done | ||
|
||
# Update tools | ||
for tool in Library/Frameworks/iio.framework/Tools/*; | ||
do | ||
install_name_tool -add_rpath @loader_path/../.. "${tool}" | ||
done | ||
|
||
# Remove old tar and create new one | ||
rm "../${tarname}" | ||
tar -czf "../${tarname}" . | ||
cd .. | ||
rm -rf temp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.