Skip to content

Instantly share code, notes, and snippets.

@masak
Created June 30, 2010 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save masak/458666 to your computer and use it in GitHub Desktop.
Save masak/458666 to your computer and use it in GitHub Desktop.
MINI-CHALLENGE
==============
Current 'install' target output looks like this:
install: all
mkdir -p ~/.perl6/lib/Form
install lib/Form/TextFormatting.pir ~/.perl6/lib/Form/TextFormatting.pir
mkdir -p ~/.perl6/lib/Form
install lib/Form/NumberFormatting.pir ~/.perl6/lib/Form/NumberFormatting.pir
mkdir -p ~/.perl6/lib/Form
install lib/Form/Field.pir ~/.perl6/lib/Form/Field.pir
mkdir -p ~/.perl6/lib/Form
install lib/Form/Actions.pir ~/.perl6/lib/Form/Actions.pir
mkdir -p ~/.perl6/lib/Form
install lib/Form/Grammar.pir ~/.perl6/lib/Form/Grammar.pir
mkdir -p ~/.perl6/lib
install lib/Form.pir ~/.perl6/lib/Form.pir
mkdir -p ~/.perl6/lib
install lib/Test.pir ~/.perl6/lib/Test.pir
Only the first 'mkdir' is necessary. Removing reduntant identical 'mkdir's would
be easy. Removing those that only create substrings of already created paths might
or might not be as trivial. I'd do the latter iff it turns out that the code for it
looks nice. :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment