Skip to content

Instantly share code, notes, and snippets.

@will-moore
Last active January 19, 2021 18:52
Show Gist options
  • Save will-moore/bbcb487b99502e9275c4fc6d80fb3b9c to your computer and use it in GitHub Desktop.
Save will-moore/bbcb487b99502e9275c4fc6d80fb3b9c to your computer and use it in GitHub Desktop.
# Copy the config locally so we don't lose it
cp dist/etc/grid/config.xml config.xml
# Delete all previous symlinks, so that 'clean' doesn't delete src code
rm dist/lib/python/omeroweb
rm dist/lib/python/omero/gateway
rm components/tools/target/lib/python/omeroweb
rm components/tools/target/lib/python/omero/gateway
rm components/tools/OmeroPy/target/omero/testlib/
rm components/tools/OmeroPy/target/omero/gateway
# Do the build...
./build.py clean build
# Remove various built dirs and symlink to src...
# omeroweb
rm -rf dist/lib/python/omeroweb/
ln -s /Users/wmoore/Desktop/OMERO/openmicroscopy/components/tools/OmeroWeb/omeroweb/ /Users/wmoore/Desktop/OMERO/openmicroscopy/dist/lib/python
# gateway
rm -rf dist/lib/python/omero/gateway/
ln -s /Users/wmoore/Desktop/OMERO/openmicroscopy/components/tools/OmeroPy/src/omero/gateway/ /Users/wmoore/Desktop/OMERO/openmicroscopy/dist/lib/python/omero/
# various libs for testing
rm -rf /Users/wmoore/Desktop/OMERO/openmicroscopy/components/tools/target/lib/python/omeroweb/
ln -s /Users/wmoore/Desktop/OMERO/openmicroscopy/components/tools/OmeroWeb/omeroweb/ /Users/wmoore/Desktop/OMERO/openmicroscopy/components/tools/target/lib/python/
rm -rf components/tools/target/lib/python/omero/gateway/
ln -s /Users/wmoore/Desktop/OMERO/openmicroscopy/components/tools/OmeroPy/src/omero/gateway/ /Users/wmoore/Desktop/OMERO/openmicroscopy/components/tools/target/lib/python/omero/
rm -rf components/tools/OmeroPy/target/omero/testlib/
ln -s /Users/wmoore/Desktop/OMERO/openmicroscopy/components/tools/OmeroPy/src/omero/testlib/ /Users/wmoore/Desktop/OMERO/openmicroscopy/components/tools/OmeroPy/target/omero/
rm -rf components/tools/OmeroPy/target/omero/gateway/
ln -s /Users/wmoore/Desktop/OMERO/openmicroscopy/components/tools/OmeroPy/src/omero/gateway/ /Users/wmoore/Desktop/OMERO/openmicroscopy/components/tools/OmeroPy/target/omero/
# Add back the config.xml
mv config.xml dist/etc/grid/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment