Skip to content

Commit

Permalink
chore: added --full-install override to enable full install in mono r…
Browse files Browse the repository at this point in the history
…epos
  • Loading branch information
tricky42 committed Jan 3, 2025
1 parent d1f2f47 commit 6a3e928
Showing 1 changed file with 39 additions and 20 deletions.
59 changes: 39 additions & 20 deletions licenses/install
Original file line number Diff line number Diff line change
@@ -1,36 +1,55 @@
#!/bin/sh
set -e

# Default mono-install to false
MONO_INSTALL=false

# Parse command line arguments
while [ "$#" -gt 0 ]; do
case "$1" in
--mono-install)
MONO_INSTALL=true
shift
;;
*)
echo "Unknown parameter: $1"
exit 1
;;
esac
done

{
echo
echo "Installing license checker engine ..."
echo
echo
echo "Installing license checker engine ..."
echo
} 2>/dev/null

if [ ! -d .bin ]; then
mkdir .bin
mkdir .bin
fi

curl https://raw.githubusercontent.com/ory/ci/master/licenses/license-engine.sh -o .bin/license-engine.sh
chmod +x .bin/license-engine.sh
curl https://raw.githubusercontent.com/ory/ci/master/licenses/licenses -o .bin/licenses
chmod +x .bin/licenses
curl https://raw.githubusercontent.com/ory/ci/master/licenses/list-licenses -o .bin/list-licenses
chmod +x .bin/list-licenses

if [ -f go.mod ]; then
{
echo
echo "Installing the Go license checker ..."
echo
} 2>/dev/null
GOBIN=$(pwd)/.bin go install github.com/google/go-licenses@master
curl https://raw.githubusercontent.com/ory/ci/master/licenses/license-template-go.tpl -o .bin/license-template-go.tpl
if [ "$MONO_INSTALL" = true ] || [ -f go.mod ]; then
{
echo
echo "Installing the Go license checker ..."
echo
} 2>/dev/null
GOBIN=$(pwd)/.bin go install github.com/google/go-licenses@master
curl https://raw.githubusercontent.com/ory/ci/master/licenses/license-template-go.tpl -o .bin/license-template-go.tpl
fi

if [ -f package.json ]; then
{
echo
echo "Installing the Node license checker ..."
echo
} 2>/dev/null
curl https://raw.githubusercontent.com/ory/ci/master/licenses/license-template-node.json -o .bin/license-template-node.json
fi
if [ "$MONO_INSTALL" = true ] || [ -f package.json ]; then
{
echo
echo "Installing the Node license checker ..."
echo
} 2>/dev/null
curl https://raw.githubusercontent.com/ory/ci/master/licenses/license-template-node.json -o .bin/license-template-node.json
fi

0 comments on commit 6a3e928

Please sign in to comment.