On Thu, Mar 31, 2016 at 10:44 AM, Roger Koehler <[email protected]> wrote:
> Unlike dpkg, porg doesn't use a DESTDIR. You just have to give it a > quoted version of the install command: > > # make install > > becomes > > # porg -lD "make install" > > assuming the simple case of naming the package after $PKGDIR. > > It does allow you to traverse several lines as follows: > > # porg -lD "make install && > cp -rv docs/* /usr/share/docs" > > So, the question is, how do I detect the last line of the install > instructions and verify there is an && at the end of each of the > commands and a " on the last one? > > I always use porg to build LFS and BLFS (I haven't used jhalfs ). Might you avoid the quotes issue by using the alternative: porg -lD -- make install and the multiple lines issue by just using the + option of the command porg -lD -- <first line> porg -lD+ -- <subsequent lines> Checking for dependencies is my main use: scripts can use porg -a | grep -i and test the return value Gordon
-- http://lists.linuxfromscratch.org/listinfo/alfs-discuss FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
