Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.os.linux.gentoo    |    Stupid OS you gotta compile EVERYTHING    |    17,684 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 16,256 of 17,684    |
|    Nikos Chantziaras to All    |
|    Re: here-documents in ebuild    |
|    13 Apr 08 20:43:36    |
      From: realnc@arcor.de              pk wrote:       > Nikos Chantziaras wrote:       >       >> It is indented with tabs, and the script runs OK on it's own.       >       > How do you run an ebuild on its own? What commands did you try?              With "on its own" I meant that a script using this construct is accepted       perfectly by bash.              #! /bin/sh       ./frob <<- EOF || echo "frob failed"        foo        bar       EOF              The above works OK. Btw, when you try to emerge the       app-text/htp-1.15.ebuild you pointed me to (once unmasked), you'll see       that it dies during the early steps with the same message:                     /var/tmp/portage/app-text/htp-1.15/temp/environment: line 184: syntax       error near unexpected token `||'       /var/tmp/portage/app-text/htp-1.15/temp/environment: line 184: ` || die'                     I guess the only solution is to check the result of the test afterwards       with something like [ $? -eq 0 ] || die "frob failed"              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca