Revision [21816]

This is an old revision of new2dir made by darkcity on 2012-06-12 11:33:34.

 

HomePage > Components and HowTos > Compiling

new2dir

new2dir is a command for putting compiled files in there own directory, rather than install to the systems Linux Directory Structure (aka RootFS).
When you compile an app you know the drill, configure, make, make install.. well new2dir is a script which slots in before 'make install' that sorts the app into it's folders ready for installation, It also can separate the main package, the nls stuff, the documentation and the dev related stuff so you can potentially end up with 4 separate directories which, if you have configured correctly, you can package up as pets.
You call it after "make" as "new2dir make install". The script asks you a series of questions about whether you want to separate the nls, doc stuff etcetera and gives you options. At the end you can optionally run dir2pet and it will run for every directory that is created, ie, the main, nls, doc, dev.
Of course not all sources include stuff for doc, nls, dev... some may only include the main package and the nls, such as the icewm I packaged recently.
Another cool thing you can do is run 'new2dir' and opt out of creating the pets. You can then go inside the directory and change stuff, like how I added the extra Puppy relevant stuff for icewm.
Use make install DESTDIR=/blah and your new compiled app's complete directory structure will be in /blah and not installed in your development environment.

Also see


Categories
CategoryCompiling
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki