Branch update script

A nice (keyboard based) front end for Arcade / Console game emulators.

Moderator: battlecat

Branch update script

Postby sairuk » Sat Dec 18, 2010 1:27 am

I have committed a bzr branch updater script today. It should work with most launchpad branches with minimal tweaking. The script currently looks in /home/currentuser/wahcade to execute. This may be edited to use a different location, although I would recommend running branched version separately.

Instructions:
- install bzr and wget (ie apt-get install bzr)
- create a branch of wahcade (ie bzr branch lp:wahcade)
- run the updater script from the wahcade branch directory (./bzr_update)

Output examples:
Code: Select all
Removing old branch-revision file
Checking for update ... Please Wait
Revision: 29 is current


Code: Select all
Removing old branch-revision file
Checking for update ... Please Wait
Update available, you are 1 commits behind, update? (y/N): y
Updating branch in /home/user/wahcade using /usr/bin/bzr from http://bazaar.launchpad.net/~waynemou/wahcade/devel/


Updater script is available in my experimental branch. You may download it separately to use with current wahcade installs. As with most script I would be wary running it as root/sudo users.
mameau - My random bits | Wah!Ki - A Wah!Cade wiki | Mah!Cade - Experimental Wah!cade Branch | ListGen | Lazarus
User avatar
sairuk
 
Posts: 432
Joined: Sat May 22, 2010 12:37 am

Re: Branch update script

Postby Zombie » Sat Dec 18, 2010 12:37 pm

Does you branch fix the Joypad bugs?
User avatar
Zombie
 
Posts: 791
Joined: Mon Oct 06, 2008 2:52 pm

Re: Branch update script

Postby sairuk » Sat Dec 18, 2010 1:45 pm

not yet
mameau - My random bits | Wah!Ki - A Wah!Cade wiki | Mah!Cade - Experimental Wah!cade Branch | ListGen | Lazarus
User avatar
sairuk
 
Posts: 432
Joined: Sat May 22, 2010 12:37 am

Re: Branch update script

Postby General_Faliure » Fri Dec 24, 2010 4:16 pm

Hello.

I am trying to use your branch update script on my test system, but i am having trouble.
The first two parts of the instruction seemed to work well, but the third part failed. (no such file or directory)
I am new to this, do i need a launchpad account?
Greetz, Ger.
My Arcade cab: https://goo.gl/photos/yE1KACHryQjCaaCj7
Core 2 duo 8400 @3600, 4 gig mem, Geforce 9500. Mame, Mess, Daphne, and some more.
Mah!cade
User avatar
General_Faliure
 
Posts: 154
Joined: Sat Mar 20, 2010 12:51 pm
Location: Drunen, Netherlands

Re: Branch update script

Postby sairuk » Fri Dec 24, 2010 10:14 pm

General_Faliure wrote:Hello.

I am trying to use your branch update script on my test system, but i am having trouble.
The first two parts of the instruction seemed to work well, but the third part failed. (no such file or directory)
I am new to this, do i need a launchpad account?
Greetz, Ger.


Make sure you are running it from inside the new branch, to do this try below.

there is no need for a launchpad account, one of my machines runs without one

you will need to check if there is a .bzr directory in the current working directory with `ls -a | grep .bzr`

if there is a .bzr directory, check for the existence of the following files,
.bzr/branch/branch.conf
.bzr/branch/last-revision

If all these conditions are correct, I will need more information to determine where it is failing. The script is running here on Ubuntu 10.10/10.04

I plan to add more logic to the script once it is written in python.
mameau - My random bits | Wah!Ki - A Wah!Cade wiki | Mah!Cade - Experimental Wah!cade Branch | ListGen | Lazarus
User avatar
sairuk
 
Posts: 432
Joined: Sat May 22, 2010 12:37 am

Re: Branch update script

Postby General_Faliure » Sun Dec 26, 2010 10:17 am

There is a .bzr directory in the /home/ger/wahcade directory, (wich has files from 24-12-10, so maybe it works after all) and both files you mentioned are present.
I will attach my bzr.log
My os on this machine is Ubuntu 10.10
You do not have the required permissions to view the files attached to this post.
My Arcade cab: https://goo.gl/photos/yE1KACHryQjCaaCj7
Core 2 duo 8400 @3600, 4 gig mem, Geforce 9500. Mame, Mess, Daphne, and some more.
Mah!cade
User avatar
General_Faliure
 
Posts: 154
Joined: Sat Mar 20, 2010 12:51 pm
Location: Drunen, Netherlands

Re: Branch update script

Postby sairuk » Mon Dec 27, 2010 1:24 pm

looking at that log bzr itself is crashing, not the script. I would try to manually run the following while you try to work it out. Worse case, clean out your ~/.bazaar directory (rename it, don't delete it) and try again.

Execute these commands to grab revision 18 (% is bash prompt).
Code: Select all
% bzr branch lp:wahcade
% cd wahcade
% bzr pull --overwrite -r 18


that will get you back to revision 18, then run
Code: Select all
bzr pull

to upgrade to the latest revision

if this works manually, you will be able to use the script
mameau - My random bits | Wah!Ki - A Wah!Cade wiki | Mah!Cade - Experimental Wah!cade Branch | ListGen | Lazarus
User avatar
sairuk
 
Posts: 432
Joined: Sat May 22, 2010 12:37 am

Re: Branch update script

Postby General_Faliure » Tue Dec 28, 2010 3:56 pm

Thanks.

This worked, i don know what went wrong the first time.
Greetz
My Arcade cab: https://goo.gl/photos/yE1KACHryQjCaaCj7
Core 2 duo 8400 @3600, 4 gig mem, Geforce 9500. Mame, Mess, Daphne, and some more.
Mah!cade
User avatar
General_Faliure
 
Posts: 154
Joined: Sat Mar 20, 2010 12:51 pm
Location: Drunen, Netherlands


Return to Wah!Cade

Who is online

Users browsing this forum: No registered users and 4 guests

cron