Shell loop in profile

Benjamin John ben.john at gmx.net
Thu Mar 9 02:41:16 PST 2006


Hi there,

does somebody have an idea how to bring a statement like this one from
the ncurses intructions in chapter 6 of the LFS-book most elegant into
alfs-syntax?

for lib in curses ncurses form panel menu ; do \
    rm -vf /usr/lib/lib${lib}.so ; \
    echo "INPUT(-l${lib}w)" >/usr/lib/lib${lib}.so ; \
    ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a ; \
done

Benjamin



More information about the alfs-discuss mailing list