Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49013 - SableCC launch script cannot take relative path
Summary: SableCC launch script cannot take relative path
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-26 01:11 UTC by Arne Mejlholm (RETIRED)
Modified: 2004-05-03 14:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
An updated ebuild file... (sablecc-2.18.2-r1.ebuild,1.05 KB, text/plain)
2004-05-02 09:39 UTC, Arne Mejlholm (RETIRED)
Details
updated ebuild (sablecc-2.18.2-r1.ebuild,963 bytes, text/plain)
2004-05-03 14:23 UTC, Arne Mejlholm (RETIRED)
Details
the script from files/ (sablecc,75 bytes, text/plain)
2004-05-03 14:24 UTC, Arne Mejlholm (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arne Mejlholm (RETIRED) gentoo-dev 2004-04-26 01:11:18 UTC
SableCC launch script cannot take the relative path to a grammar file, so here is a proposed better solution:

Old script:
#!/bin/sh
cd /usr/share/sablecc
${JAVA_HOME}/bin/java -jar lib/sablecc.jar $*

New script:
#!/bin/sh
${JAVA_HOME}/bin/java -jar /usr/share/sablecc/lib/sablecc.jar $*

It's not that big a deal, just a little annoying... :-D
Comment 1 Arne Mejlholm (RETIRED) gentoo-dev 2004-05-02 09:39:33 UTC
Created attachment 30525 [details]
An updated ebuild file...

This updated ebuild should do the trick, the only modification is in the
script generating part.

Can anyone verify?
Comment 2 Arne Mejlholm (RETIRED) gentoo-dev 2004-05-03 14:23:51 UTC
Created attachment 30641 [details]
updated ebuild

Updated the ebuild:
1. (earlier fix) changed the launch script
2. changed creation of the script from using "echo" to using files/
Comment 3 Arne Mejlholm (RETIRED) gentoo-dev 2004-05-03 14:24:24 UTC
Created attachment 30642 [details]
the script from files/
Comment 4 Arne Mejlholm (RETIRED) gentoo-dev 2004-05-03 14:27:16 UTC
Assigning to java team...
Comment 5 Chris Aniszczyk (RETIRED) gentoo-dev 2004-05-03 14:58:10 UTC
Fixed in portage, thanks.