cd: flexible treatment of repeated '..', even as prefix
Treat '..' as any shell does:
- while the path given starts with '..', strip away
the first element of the current base DN
- use ',' as separator
- if anything remains in thep ath given, prepend it to
the stripped down baseDN
- use the result as the new base DN
VERSION := $(shell awk '/VERSION/ { print $$4 }' shelldap | sed -e "s/[';]//g")
release:
@mkdir shelldap-${VERSION}
@cp shelldap shelldap-${VERSION}
@hg log --style=changelog > shelldap-${VERSION}/ChangeLog
@pod2text shelldap > shelldap-${VERSION}/README
@tar -czvf shelldap-${VERSION}.tar.gz shelldap-${VERSION}
@rm -rf shelldap-${VERSION}