Skip to content

Commit

Permalink
fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
jburel committed Jul 4, 2022
1 parent 5afc192 commit ca4f52c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion omero/autogen_docs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ echo "Getting db properties"
omero/autogen_db_version.py $WORKSPACE/OMERO.server > omero/conf_autogen.py

echo "Update dependencies"
bash dependencies.sh
bash omero/dependencies.sh


echo "Cleanup"
Expand Down
13 changes: 8 additions & 5 deletions omero/dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ for dir in "${dirs[@]}"
repopath="https://artifacts.openmicroscopy.org/artifactory/ome.releases/${dir}"
version=`curl -s ${repopath}/maven-metadata.xml | grep latest | sed "s/.*<latest>\([^<]*\)<\/latest>.*/\1/"`
echo $version
sed -i -e "s/version_${v} = .*/version_${v} = \"${version}\"/" conf_autogen.py
sed -i -e "s/version_${v} = .*/version_${v} = \"${version}\"/" omero/conf_autogen.py
done

# GitHub packages
Expand All @@ -54,7 +54,7 @@ do
done < conf_autogen.py
fi

sed -i -e "s/version_${v} = .*/version_${v} = \"${version}\"/" conf_autogen.py
sed -i -e "s/version_${v} = .*/version_${v} = \"${version}\"/" omero/conf_autogen.py
done

echo $new_version
Expand All @@ -77,7 +77,7 @@ if [ ! -z $new_version ]; then
version=`unzip -p $dir META-INF/MANIFEST.MF | grep "Implementation-Version:" | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/'`
echo $v
echo $version
sed -i -e "s/version_${v} = .*/version_${v} = \"${version}\"/" conf_autogen.py
sed -i -e "s/version_${v} = .*/version_${v} = \"${version}\"/" omero/onf_autogen.py
done
# clean up
rm -rf OMERO.server*
Expand All @@ -93,10 +93,13 @@ do
echo $v
version=`curl -Ls https://pypi.org/pypi/$package/json | jq -r .info.version`
echo $version
sed -i -e "s/version_${v} = .*/version_${v} = \"${version}\"/" conf_autogen.py
sed -i -e "s/version_${v} = .*/version_${v} = \"${version}\"/" omero/conf_autogen.py
done



# Clean up
rm conf_autogen.py-e
if [ -f omero/conf_autogen.py-e ]; then
rm omero/conf_autogen.py-e
fi

0 comments on commit ca4f52c

Please sign in to comment.