Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update flatgraph #1785

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name := "codepropertygraph"

// parsed by project/Versions.scala, updated by updateDependencies.sh
val flatgraphVersion = "0.0.87"
val flatgraphVersion = "0.0.88"

inThisBuild(
List(
Expand Down
14 changes: 12 additions & 2 deletions updateDependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ check_installed() {
fi
}

function sedi() {
if sed --version 2> /dev/null | grep -q 'GNU' ; then
# GNU sed does not like a second argument for -i
sed -i "$@"
else
# but macOS (FreeBSD) sed needs it
sed -i '' "$@"
fi
}

check_installed curl

# check if xmllint is installed
Expand Down Expand Up @@ -57,13 +67,13 @@ function update {
if [ "$NON_INTERACTIVE_OPTION" == "--non-interactive" ]
then
echo "non-interactive mode, auto-updating $NAME: $OLD_VERSION -> $VERSION"
sed -i "s/$SEARCH/$REPLACE/" build.sbt
sedi "s/$SEARCH/$REPLACE/" build.sbt
else
echo "update $NAME: $OLD_VERSION -> $VERSION? [Y/n]"
read ANSWER
if [ -z $ANSWER ] || [ "y" == $ANSWER ] || [ "Y" == $ANSWER ]
then
sed -i "s/$SEARCH/$REPLACE/" build.sbt
sedi "s/$SEARCH/$REPLACE/" build.sbt
fi
fi
fi
Expand Down