Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Pure Perl or the toolkit?

by crouchingpenguin (Priest)
on Aug 21, 2003 at 13:24 UTC ( #285455=note: print w/replies, xml ) Need Help??

in reply to Pure Perl or the toolkit?

Since you're already using make, why not use install as well from within the Makefile? install should be available on most any system that has some form of make avaible. That seems to satisfy the required simplicity as well as being fairly portable. Instead of worrying about whats missing in File::Copy, just add an install call to your make target like so:

FILES=/tmp/one /tmp/two /tmp/three DEST=/tmp/mounted_image install: install -m 0755 $(FILES) $(DEST)

"Never be afraid to try something new. Remember, amateurs built the ark. Professionals built the Titanic."

Replies are listed 'Best First'.
Re: Pure Perl or the toolkit?
by Abigail-II (Bishop) on Aug 21, 2003 at 13:44 UTC
    Because it has nothing to do with installing files on a final destination. It happens in the middle of a script that creates an image, creates a file system on the image, mounts it, creates device files, creates and copies other files, creates links, finds and installs kernel modules installs busybox, does a handful of other things, and then umounts the file system and compresses the image. By the time the script is finished, no destination to copy to exists.

    Sure, I could drive the entire thing with make, and lots of things are already done in pure make. But then I would have to start parsing configuration files as well. Not impossible, but sometimes, it's easier to use Perl.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://285455]
[Happy-the-monk]: even more OT: received the complete series of Robin Hood/Robin of Sherwood 1984 on used dvds this morning :)
[Happy-the-monk]: (purely coincidental)
[jkva]: Corion Hey there :)
[Happy-the-monk]: Discipulus: are there any perl monks in Milano?
[Discipulus]: i the moment likely no
[karlgoethebier]: i wonder now it will be with my glasses.
[Discipulus]: Milan Perl Mongers seems frozen at 2009
[Discipulus]: karl you dont shoot with eyes, you shoot with the soul
[jkva]: Reminds me of Guardians of the Galaxy

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2017-10-20 10:01 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (260 votes). Check out past polls.