Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

"sketch" directory not being added with 'make manifest'

by stevieb (Abbot)
on Jul 25, 2017 at 22:48 UTC ( #1196049=perlquestion: print w/replies, xml ) Need Help??
stevieb has asked for the wisdom of the Perl Monks concerning the following question:

Another day, another request for advice.

In RPi:WiringPi, I have a docs/ directory that includes subdirs breadboard/, fritzing/, schematic/ and sketch/. As you can see by browsing my docs dir on CPAN, sketch/ doesn't show up, but it's there.

When I do a make manifest it doesn't get added, but all other directories do just fine. Can anyone spot something I'm missing in my MANIFEST.SKIP file here, or provide an answer as to why this directory refuses to be included?

# MANIFEST.SKIP ^images/ .bs$ .c$ .o$ .sh$ ~$ ^blib/ ^pm_to_blib/ .old$ .orig$ .tar.gz$ .bak$ .swp$ .hg/ .hgignore$ ^_build/ ^Build$ ^MYMETA\.yml$ ^MYMETA\.json$ ^README.bak$ ^Makefile$ .metadata/ .idea/ pm_to_blib$ .git/ .debug$ .gitignore$ .ignore.txt$ .travis.yml$ .iml$ build/ ^\w+.list$ .bblog$ .base$ main$

It's a pretty old skip file which needs to be cleaned up, but it's what I'm running with that shows the problem so I'm posting it as is in case I'm overlooking a regex or something.

Here's the current MANIFEST as of a minute ago, after running make manifest.

Replies are listed 'Best First'.
Re: "sketch" directory not being added with 'make manifest'
by choroba (Bishop) on Jul 25, 2017 at 23:01 UTC
    Just guessing:
    .o$
    doesn't contain ^, so `arduino.ino` matches it (dot is not backslashed), so the directory is empty, and empty directories are skipped (just the last part involves guessing).

    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

      For the love of ...

      Thanks choroba, I figured it was something silly like this. That cleared it up :)

      I went ahead and corrected the rest as well. They didn't cause difficulty, but the non-escape I clearly overlooked throughout the whole file.

Re: "sketch" directory not being added with 'make manifest'
by ablanke (Curate) on Jul 26, 2017 at 19:01 UTC
    Hi stevieb,

    my first thought after reading this thread was, why not get a filelist of your project directory and match it against the regexes of your MANIFEST.SKIP.

    My second thought was, there must be an CPAN-Module for that.

    I've found and tried ExtUtils::Manifest

    A quick test with your project and MANIFEST.SKIP file:

    rpi-wiringpi-master$ perl -e 'use ExtUtils::Manifest qw(skipcheck); sk +ipcheck;' Skipping .gitignore Skipping docs/sketch/arduino.ino ...

    hope it helps

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1196049]
Approved by beech
Front-paged by Corion
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2018-02-17 23:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (250 votes). Check out past polls.

    Notices?