6 years agosetenv: check in a more robust way that the script is being sourced
Antonio Ospite [Tue, 6 Oct 2015 10:26:17 +0000 (12:26 +0200)]
setenv: check in a more robust way that the script is being sourced

Sometimes a leading '-' shows up in $0 for login shells, for example
this happens when opening a shell with "sudo -i"; in these cases $0 will
look like "-bash" instead of "bash", and the comparison with $(basename
$SHELL) fails even if the script is being sourced.

Fix this by stripping the leading '-'.

8 years indent to match more closely what pep8 suggests
Antonio Ospite [Wed, 11 Sep 2013 21:40:36 +0000 (23:40 +0200)] indent to match more closely what pep8 suggests

8 years support both mdpi and hdpi as baseline densities
Antonio Ospite [Wed, 11 Sep 2013 21:30:53 +0000 (23:30 +0200)] support both mdpi and hdpi as baseline densities

Also replace the word "resolutions" with "density" which is more
accurate in this context.

8 years adjust the help text of the --single_file option
Antonio Ospite [Wed, 11 Sep 2013 21:26:43 +0000 (23:26 +0200)] adjust the help text of the --single_file option

8 years agosetenv: warn that the script is meant to be sourced, not executed
Antonio Ospite [Wed, 11 Sep 2013 20:51:08 +0000 (22:51 +0200)]
setenv: warn that the script is meant to be sourced, not executed

9 years agoInitial import
Antonio Ospite [Sun, 24 Feb 2013 12:52:34 +0000 (13:52 +0100)]
Initial import