View previous topic :: View next topic |
Author |
Message |
Cicero Apprentice
Joined: 21 Jul 2003 Posts: 220
|
Posted: Tue Jul 29, 2003 4:39 pm Post subject: first ebuild help |
|
|
I just up and decided to make an ebuild today (I've been using Gentoo for a year, so it's about time). I have everything working right now, but I have concerns about ease of maintaining (I'm just thinking of you guys ). Right now, I have to manually set a package version (using MY_PV), because the files to be downloaded don't have dots in the version. i.e. a package with version 1.2.3 has package123.zip for a file. How do I strip out the dots (I know I'm being really technical here) to set MY_PV automatically from PV? This is important, because the development branch of this package gets updated every week, and I don't think anyone wants to change MY_PV every time. |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Tue Jul 29, 2003 6:11 pm Post subject: |
|
|
Code: | MY_PV=`echo ${PV} | sed -e 's/\.//g'` |
|
|
Back to top |
|
|
Cicero Apprentice
Joined: 21 Jul 2003 Posts: 220
|
Posted: Tue Jul 29, 2003 6:18 pm Post subject: |
|
|
Heh, I was coming here to post "Nevermind. I figured it out." Well, at least now I know I did it correctly
Thanks!
Submitting ebuild for PCGen, a D&D character generator. . . |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9526 Location: beyond the rim
|
Posted: Tue Jul 29, 2003 6:20 pm Post subject: |
|
|
Untested:
|
|
Back to top |
|
|
LinuxDolt Tux's lil' helper
Joined: 05 May 2003 Posts: 104
|
Posted: Wed Jul 30, 2003 2:15 am Post subject: |
|
|
Cicero wrote: | Well, at least now I know I did it correctly |
heh, imo, there is no correct or incorrect way to do things. there are just two questions to always ask yourself:
1: does it work, and
2: does it make sense to someone else who might want to look at it.
if you can answer yah to both of those, then you are fine, if the answer is nah to either of those questions, you might want to consider something else |
|
Back to top |
|
|
Cicero Apprentice
Joined: 21 Jul 2003 Posts: 220
|
Posted: Tue Aug 12, 2003 6:21 am Post subject: |
|
|
pcgen is in portage, and among the modifications it got on the way in, one was:
MY_PV="${PV//./}" |
|
Back to top |
|
|
|