Github user dkuppitz commented on the pull request:
https://github.com/apache/incubator-tinkerpop/pull/317#issuecomment-221477985
Oh right, I didn't think about snapshot and parallel release lines. Now I
also remember how I wanted to solve it: we actually shouldn't get rid of the
version directories altogether. We should keep doing that but then add a bit of
extra logic that makes a recursive copy of the latest version directory (maybe
symlinks would work as well?).
```
rm -rf current/
cp -R ${LATEST} current/
```
Determining `LATEST` is easy once you have all the version directories:
```
daniel@cube /tmp/test $ mkdir 3.1.1 3.1.2 3.1.2-SNAPSHOT
daniel@cube /tmp/test $ mkdir 3.2.0 3.2.1 3.2.2 3.2.3-SNAPSHOT
daniel@cube /tmp/test $ ls
3.1.1 3.1.2 3.1.2-SNAPSHOT 3.2.0 3.2.1 3.2.2 3.2.3-SNAPSHOT
daniel@cube /tmp/test $ ls | grep -v SNAPSHOT | sort -rV | head -n1
3.2.2
daniel@cube /tmp/test $
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---