Revision history for new2dir


Revision [21819]

Last edited on 2012-06-12 11:35:23 by darkcity [format cat]
Additions:
~[[dir2pet]] - Makes [[Pets Pet]] package from a directory
Deletions:
~[[dir2pet]]


Revision [21816]

Edited on 2012-06-12 11:33:34 by darkcity [also]
Additions:
~[[dir2pet]]
~[[http://murga-linux.com/puppy/viewtopic.php?t=52033 Updated dir2pet, petspcs scripts thread]]


Revision [21512]

Edited on 2012-05-13 10:00:49 by darkcity [format cat]
Additions:
[[HomePage]] > [[ComponentHowTo Components and HowTos]] > [[CompilingIndex 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==
~[[http://murga-linux.com/puppy/viewtopic.php?p=503557#503557 new2dir is really slow post]]
----
==Categories==
CategoryCompiling
Deletions:
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.
http://murga-linux.com/puppy/viewtopic.php?p=503557#503557


Revision [13415]

Edited on 2011-03-12 04:13:42 by coolpup [format cat]
Additions:
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.
http://murga-linux.com/puppy/viewtopic.php?p=503557#503557
Deletions:
a lot of developers don't use new2dir, because they don't want the install in their development environment..The alternative is very simple, just a switch in the make install.
Just 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.


Revision [4506]

Edited on 2009-11-27 06:29:20 by CrustyLobster [format cat]
Additions:
a lot of developers don't use new2dir, because they don't want the install in their development environment..The alternative is very simple, just a switch in the make install.
Just 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.


Revision [4505]

The oldest known version of this page was created on 2009-11-27 06:14:12 by CrustyLobster [format cat]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki