automate adding stuff to .XXXignore files
Perl6
Latest commit f41d157 Oct 30, 2016 @mpkh mpkh committed on GitHub Merge pull request #4 from paultcochrane/pr/add-travis-config
Add Travis-CI configuration
Permalink
Failed to load latest commit information.
bin clean up Sep 4, 2015
t normalize syntax May 19, 2014
.gitignore Fix test; File::Tools is now File::Find May 11, 2014
.travis.yml Add Travis-CI configuration Oct 29, 2016
META.info Add mandatory "perl" META field Oct 26, 2016
README.md break formatting standards Mar 28, 2013

README.md

Easiest way to ignore junk in your VCS folder

Currently supported : hg, git

TODO :
 - multiply ignore files

Usage:
  bin/ignore [--debug] [--git] [--hg] [--all] <source>
sub ignore($ifile, $pattern) {
    my $res = find(:dir<.>, :name($ifile));
    given $res.elems {
        when 1 {
            log $res[0].fmt('found single ignore file at %s');
            if analyze( $res[0], $pattern ) { log 'this file is already in ignore file'; }
            else {
                log 'adding new node to ignore file';
                f $res[0], :a, { .say( $pattern ); }