Skip to content

Commit

Permalink
Fix dash-license-check.sh to work on Macs
Browse files Browse the repository at this point in the history
The BSD cut utility doesn't have the GNU --delim option, so I
replaced it with awk.
  • Loading branch information
agarciadom committed Jan 3, 2025
1 parent 316fe80 commit 6298c49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dash-license-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ mvn -f pom-plain.xml org.eclipse.dash:license-tool-plugin:license-check \
# To produce that list of excluded artifact IDs, we can use a command like
# this one:
#
# grep restricted DEPENDENCIES | cut --delim=/ -f4 | grep org.eclipse | paste -sd ,
# grep restricted DEPENDENCIES | awk -F/ '{print $4}' | grep org.eclipse | paste -sd ,

mvn org.eclipse.dash:license-tool-plugin:license-check \
-Dtycho.target.eager=true $DASH_OPTIONS_TYCHO \
Expand All @@ -68,7 +68,7 @@ mvn org.eclipse.dash:license-tool-plugin:license-check \
# https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/issues/10595

find_wrapped_restricted() {
grep 'wrapped.*restricted' DEPENDENCIES | cut --delim=/ -f4 | sed 's#wrapped.##'
grep 'wrapped.*restricted' DEPENDENCIES | awk -F/ '{print $4}' | sed 's#wrapped.##'
}

classify_wrapped_restricted() {
Expand Down

0 comments on commit 6298c49

Please sign in to comment.