I think I've found the issue. The input contains:
SRC_URI="${SRC_PATH}/X${MY_SV}src-1.tgz
${SRC_PATH}/X${MY_SV}src-2.tgz
${SRC_PATH}/X${MY_SV}src-3.tgz
${SRC_PATH}/X${MY_SV}src-4.tgz
${SRC_PATH}/X${MY_SV}src-5.tgz
doc? ( ${SRC_PATH}/X${MY_SV}src-6.tgz
${SRC_PATH}/X${MY_SV}src-7.tgz )"
SRC_URI="${SRC_URI}
${X_PATCHES}
${X_DRIVERS}
nls? ( mirror://gentoo/gemini-koi8-u.tar.bz2 )
mirror://gentoo/eurofonts-X11.tar.bz2
mirror://gentoo/xfsft-encodings.tar.bz2
mirror://gentoo/XFree86-compose.dir-0.1.bz2
mirror://gentoo/XFree86-en_US.UTF-8.old.bz2
mirror://gentoo/XFree86-locale.alias.bz2
mirror://gentoo/XFree86-locale.dir.bz2
mirror://gentoo/gentoo-cursors-tad-${XCUR_VER}.tar.bz2
truetype? ( !bindist? ( ${MS_FONT_URLS} ) )"
The code doesn't handle stuff like this. I had another idea, though. I could process each variable as I read it from the file. In bash, a variable has to be defined first to be interpolated into one occuring later. I can interpolate each variable as I read it in, so there is no need for a deptree and recursive functions.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.