Allow to use
play.it script without prior call to
Fix #52 (closed)
Fix #114 (closed)
How to test:
Ensure that ./play.it is not installed on your system, especially that no
play.it command is available and that neither the library nor game scripts can be found in the following paths:
$PWD $XDG_DATA_HOME/play.it $XDG_DATA_HOME/play.it/play.it-2/lib /usr/local/share/games/play.it /usr/local/share/play.it /usr/share/games/play.it /usr/share/play.it
Then call the
play.it script from a clone of the git repository, giving it the path to a supported archive.
$PLAYIT_LIB2 not set, the scripts fails with:
libplayit2.sh not found.
$PLAYIT_LIB2 set to a valid path to the library, the script fails with an error similar to:
Could not find script for file …
With this patch, the building process should happen, no matter if
$PLAYIT_LIB2 is set or not.