Author Topic: GooeyBuilder .9.2  (Read 4701 times)

Induane

  • Veteran
  • *
  • Posts: 1287
  • What should I put here?
    • View Profile
    • Vaalnor Inc.
Re: GooeyBuilder Beta Version Released!
« Reply #15 on: May 07, 2006, 08:25:51 pm »
Yea I was playing around with different ways of doing this. A person in #bash gave me this little example which I've been looking over trying to figure out. :D

Code: [Select]
checkout () {
    until cvs checkout prods
        date
        false
    do
        sleep 1
    done
}

trap "echo >&2 SIGHUP; set -x; exit 100" HUP
(
    while sleep 1
    do echo dummy
    done
) |
    zenity --progress --pulsate --auto-close --text "TEXT" &
zenitypid=$!
checkout
kill $zenitypid
echo >&2 done

A trap was suggested there as well.  I'll mess around with it to see if I can get something working now :D Thanks for the advice.
« Last Edit: June 01, 2006, 04:31:03 pm by Induane »

Induane

  • Veteran
  • *
  • Posts: 1287
  • What should I put here?
    • View Profile
    • Vaalnor Inc.
Re: GooeyBuilder Beta Version Released!
« Reply #16 on: May 11, 2006, 09:16:40 am »
I finally added an updated versio and fixed the apt repository.  There are several improvements, but I've another question for the geniuses here.  If the person puts in the wrong password in my dialog how can I set it up so that it catches that and allows say...3 retries or something?
« Last Edit: June 01, 2006, 04:31:22 pm by Induane »

Wired_Crawler

  • Hydlaa Citizen
  • *
  • Posts: 429
    • View Profile
Re: GooeyBuilder Beta Version Released!
« Reply #17 on: May 11, 2006, 10:58:50 am »
Erm... I'm not a genius, but anyway...

Code: [Select]
function build_env {

        NUM_TRIES=3
        # sudo -k to test script
        sudo -k
        for (( i=1; i<=$NUM_TRIES; i++ )); do
              # just "sudo -v" below to have exit value of sudo, not command invoked through sudo
              zenity --entry --title "Password Prompt" --hide-text --text $"Enter your password (try #$i of $NUM_TRIES)." | sudo -S -v
              # exit loop if password was correct
              [ "$?" -eq "0" ] && break
        done
        # "i" greater than $NUM_TRIES means $NUM_TRIES failed tries
        [ "$i" -gt "$NUM_TRIES" ] && { zenity --error --text "Number of retries exhausted!"; exit 1; }
        [ -d $install_dir/planeshift_cvs ] || sudo mkdir $install_dir/planeshift_cvs
        # sudo -v # not needed here ?
        sudo chmod -R 777 $install_dir
        touch $install_dir/planeshift_cvs/GooeyBuild.log
        cd $install_dir/planeshift_cvs

}

BTW: why "Gooey" ?
"Close the world, txEn eht nepO."

Induane

  • Veteran
  • *
  • Posts: 1287
  • What should I put here?
    • View Profile
    • Vaalnor Inc.
Re: GooeyBuilder Beta Version Released!
« Reply #18 on: May 11, 2006, 03:09:01 pm »
Gooey is the literal pronounciation of G.U.I.

btw thanks I'll mess with the password retry dohickey.  Hehe - I'm not so good at this.
« Last Edit: June 01, 2006, 04:31:44 pm by Induane »

Leritho

  • Traveller
  • *
  • Posts: 16
  • Jabber: mandavister@jabber.ccc.de
    • View Profile
Re: GooeyBuilder Beta Version Released!
« Reply #19 on: May 22, 2006, 03:31:21 pm »
hi,

after typing gooeybuilder in my cl - the third window i get says: Could not find buildscript compatible with your linux distro. Exiting...

hmm - I am currently running Ubuntu 6.06 alias Dapper Drake - since it was made for dapper i was wonderingn what could have went wrong

Alfonso Knaf

  • Hydlaa Resident
  • *
  • Posts: 101
    • View Profile
    • PSDe
Re: GooeyBuilder Beta Version Released!
« Reply #20 on: May 23, 2006, 12:23:02 am »
It worked for me once (well at this time the servers didn't work...) but now I get the same error, so might there be a problem with any updatet libs/etc. ?

EDIT: Here we go with a simple solution: open "/usr/local/GooeyBuild/distro" with a texteditor and change "Dapper" in line 6 to "dapper"...
Thats all!

EDIT2: Since sourceforge changed their naming policy you havo to open another file and change so things:
do a "sudo gedit /usr/local/GooeyBuild/dapper_buildscript"
and then change line 14 to 17 to the following:
ps_login=':pserver:anonymous:@planeshift.cvs.sourceforge.net:/cvsroot/planeshift login'
ps_co=':pserver:anonymous@planeshift.cvs.sourceforge.net:/cvsroot/planeshift co planeshift'
cal3d_login=':pserver:anonymous:@cal3d.cvs.sourceforge.net:/cvsroot/cal3d login'
cal3d_co=':pserver:anonymous@cal3d.cvs.sourceforge.net:/cvsroot/cal3d co cal3d'
« Last Edit: May 23, 2006, 12:41:20 am by Alfonso Knaf »
"What is the mind? Doesn't matter. - What is matter? Never mind."

Induane

  • Veteran
  • *
  • Posts: 1287
  • What should I put here?
    • View Profile
    • Vaalnor Inc.
Re: GooeyBuilder Beta Version Released!
« Reply #21 on: May 23, 2006, 05:52:29 pm »
I've got those issues addressed for .8 but havn't packaged it up yet.  My wife was out of town so instead of hiding out on the computer I've been fixing things and relaxing.... lazy I know. :D I'll do a bit more work tonight then see what all I can do.  If I'm lucky I'll get a new package ready by tomorrow.

I'm also doing a little research on SVN which is what it looks like alot of these will be switching to for source code control. Eventually the script will have to be updated for that switch.

Edit:  SVN added as well now
« Last Edit: June 01, 2006, 04:32:07 pm by Induane »

Induane

  • Veteran
  • *
  • Posts: 1287
  • What should I put here?
    • View Profile
    • Vaalnor Inc.
Re: GooeyBuilder Beta .8.1 Released
« Reply #22 on: May 27, 2006, 09:11:42 pm »
http://vaalnor.mine.nu/PlaneShift%20Builder/

The link above is where I keep my script and debian package making environment.  Making the packages is now automated with a 4 line script, and really all is working out pretty good.  I added SVN, and a max retry variable to everything which seems to be working well.  I got two successful builds of the client out of this earlier, so hopefully there aren't any other glaring mistakes.  Next on the agenda is true progress indicators.  Anyways if anyone has suggestions for the way I have things layed out, etc, let me know. :D Wired_crawler has already been a fantastic help btw thanks!
« Last Edit: June 01, 2006, 04:37:13 pm by Induane »

Induane

  • Veteran
  • *
  • Posts: 1287
  • What should I put here?
    • View Profile
    • Vaalnor Inc.
Re: GooeyBuilder Beta .8.2 Released
« Reply #23 on: June 13, 2006, 06:17:02 am »
hehe again sorry to respond to my own posts (Induane glances around for Karyuu) but I've finally done a little bugbusting and updating on my script.  On two seperate PCs it compiled and updated working versions (too new for the server though) and all seems to be good.  It now backs up your current sources.list file, copies in mine, updates the package list, installs packages, then returns your original sources.list file and refreshes the package list again.  This means it will now work completely out of the box on a fresh dapper install, but it also adds a little extra time to the whole procedure.

Suno_Regin

  • Forum Addict
  • *
  • Posts: 2445
    • View Profile
Re: GooeyBuilder .8.2 Released
« Reply #24 on: June 13, 2006, 06:58:09 am »
Guys, blue doesn't mix with brown. I can't read your font with Karyuu's forum layout. =/

Leritho

  • Traveller
  • *
  • Posts: 16
  • Jabber: mandavister@jabber.ccc.de
    • View Profile
Re: GooeyBuilder .8.2 Released
« Reply #25 on: June 24, 2006, 11:04:32 pm »
hi,

my next attempt to use the gooeyBuilder ended in the following message:
Code: [Select]
cp: Aufruf von stat für „/opt/planeshift_cvs/art“ nicht möglich: No such file or directory which makes sence since there is no directory called /opt/planeshift_cvs/art but only /opt/planeshift_cvs/planeshift/art
due to a lack of knowledge i don't have a clue how to fix that myself...

I used .8.2 on dapper and chose the default install directory.

Induane

  • Veteran
  • *
  • Posts: 1287
  • What should I put here?
    • View Profile
    • Vaalnor Inc.
GooeyBuilder .9.0 Released
« Reply #26 on: June 25, 2006, 04:25:41 am »
Today I finally released version .9 of gooeybuilder.  There are alot of changes to this version.  Some variables are now stored in a config file which is parsed by the script.  Also, this allows me to start creating a new script will be a setup tool, allowing you to adjust such settings as max cvs retries and stuff.

Leritho

  • Traveller
  • *
  • Posts: 16
  • Jabber: mandavister@jabber.ccc.de
    • View Profile
Re: GooeyBuilder .9.0
« Reply #27 on: June 26, 2006, 01:15:14 am »
hi,
i ran the .9.0 version today, but get still the same message in the log  in the section ART RESTORE  that there is no directory /opt/planeshift_cvs/art which is correct because there is a /planeshift missing in the path.

Induane

  • Veteran
  • *
  • Posts: 1287
  • What should I put here?
    • View Profile
    • Vaalnor Inc.
Re: GooeyBuilder .9.0
« Reply #28 on: June 26, 2006, 05:52:25 am »
thankx fixed :D

Leritho

  • Traveller
  • *
  • Posts: 16
  • Jabber: mandavister@jabber.ccc.de
    • View Profile
Re: GooeyBuilder .9.1
« Reply #29 on: June 26, 2006, 02:40:40 pm »
well, it still didn't work.  ??? now the script was looking for /opt/art  - just in case that is already at the end of the script - is there a way i don't need to compile everything again?