Remove shebang line

The env-setup script is not intended to be run directly, so it does not
need a shebang line, which might even create the wrong expectations.

Signed-off-by: martin f. krafft <madduck@madduck.net>
Replace external command with shell construct

dirname/basename do not need an external process, shell variable
expansion can be made to do the same a bit faster.

Signed-off-by: martin f. krafft <madduck@madduck.net>
Quote variables in shell script

In case paths contain spaces, it's better to consistently quote
variables, and to use $() instead of `` for external invocations.

Signed-off-by: martin f. krafft <madduck@madduck.net>
Remove bashisms, replace with POSIX constructs

This replaces double conditional brackets with single ones and gets ris
of bashisms, so that the tool should be sourcable from any POSIX shell.

Constructs like [ $foo = "$bar"* ] yield filesystem-globbing behaviour
according to POSIX. A compliant way is to use case statements.

Signed-off-by: martin f. krafft <madduck@madduck.net>
added force parameter to symlink invocation, in order to force the creation in case of already existing destination with the type of 'file'
added possibility to force symlinks to none-existent destination (which might appear later)
Updated documentaion for the file module
Fixed typo
Remove extra $ character

Signed-off-by: martin f. krafft <madduck@madduck.net>
Merge branch 'env-setup-shell-tweaks' of git://github.com/madduck/ansible into bash_hacking

Conflicts:
	hacking/env-setup
Add some whitespace to script
Merge remote branch 'origin' into devel
Merge branch 'files_force' of git://github.com/rhaido/ansible into devel