last stable version of spring with git
Moderator: Moderators
last stable version of spring with git
Hi All,
I am using Debian Lenny and try to compile the sources. Therefore i want to get the sources with git. How do i get the latest stable version with git?
I do not want to update the sources every time manually!
regards Markus
I am using Debian Lenny and try to compile the sources. Therefore i want to get the sources with git. How do i get the latest stable version with git?
I do not want to update the sources every time manually!
regards Markus
Re: last stable version of spring with git
git checkout $(git tag -l | tail -n 1)
altho there's prolly a smarter git builtin way?
altho there's prolly a smarter git builtin way?
Re: last stable version of spring with git
Hi koshi,koshi wrote:git checkout $(git tag -l | tail -n 1)
altho there's prolly a smarter git builtin way?
and how do i have to change this line?
Regards Markusgit clone git://github.com/spring/spring.git
Re: last stable version of spring with git
How does this look for springlobby ?
and thangit clone git://springlobby.info/git/buildbot/springlobby.git
regards Markusgit checkout $(git tag -l | tail -n 1)
Re: last stable version of spring with git
I get the following,koshi wrote:git checkout $(git tag -l | tail -n 1)
altho there's prolly a smarter git builtin way?
But when i do,feld-bert:/opt/spring# git checkout $(git tag -l | tail -n 1)
Note: moving to "0.81.2.1" which isn't a local branch
If you want to create a new branch from this checkout, you may do so
(now or later) by using -b with the checkout command again. Example:
git checkout -b <new_branch_name>
HEAD is now at 884a107... bumped version to 0.81.2.1
It seems to work?feld-bert:/opt/spring# git tag -l | tail -n 1
0.81.2.1
feld-bert:/opt/spring# git checkout 0.81.2.1
HEAD is now at 884a107... bumped version to 0.81.2.1
regards Markus
Re: last stable version of spring with git
it worked the first time already, the second time the output was just different cause you were not in a branch to begin with. if you execute koshis command again, it should give the same output.
and it should work the same way with springlobby.
and it should work the same way with springlobby.
Re: last stable version of spring with git
it won't actually, see the tag list: http://sl.pastebin.com/W5gPn8HJhoijui wrote:and it should work the same way with springlobby.
Re: last stable version of spring with git
I gotkoshi wrote:it won't actually, see the tag list: http://sl.pastebin.com/W5gPn8HJhoijui wrote:and it should work the same way with springlobby.
regards Markusfeld-bert:/opt/springlobby# git checkout $(git tag -l | tail -n 1)
HEAD is now at a112d0a... Merge commit 'bd/master'
Re: last stable version of spring with git
I meant it's not going to get you latest
Re: last stable version of spring with git
could it be an idea nae, to use use the first part of git describe to obtain the tag?
Code: Select all
git describe | sed -e "s/-.*//g"
Re: last stable version of spring with git
Is <master> the latest stable version for springlobby?
So i need to <git-checkout master> ?
And how to uninstall this files (spring and springlobby) ?
And where is <unitsync.so> ? I compiled the latest stable spring correctly over git+cmake.
regards Markus
So i need to <git-checkout master> ?
And how to uninstall this files (spring and springlobby) ?
And where is <unitsync.so> ? I compiled the latest stable spring correctly over git+cmake.
regards Markus
Re: last stable version of spring with git
it is not good to talk about latest stable, you should say either latest = master or (current) release (= 0.81.2.1 at the moment).
to play online, you need the release, and how to get that is what koshi showed you for spring. this one should work for both spring and SL:
no guarantees though.
uninstalling only works by manually deleting the files (i guess you used make install). best way is, you do not install into the default location /usr/local, but rather do something like this:
of course you have to edit the INSTAL_DIR in this code, and maybe add more params to cmake.
then you can simply uninstall by deleting /home/userX/spring_release.
though.. we have a Debian repository which should contain the current spring release.
to play online, you need the release, and how to get that is what koshi showed you for spring. this one should work for both spring and SL:
Code: Select all
git checkout $(git describe | sed -e "s/-.*//g")
uninstalling only works by manually deleting the files (i guess you used make install). best way is, you do not install into the default location /usr/local, but rather do something like this:
Code: Select all
INSTALL_DIR=/home/userX/spring_release
mkdir -p ${INSTALL_DIR}
cmake \
-DSPRING_DATADIR="${INSTALL_DIR}" \
-DCMAKE_INSTALL_PREFIX="" \
-DBINDIR=. -DLIBDIR=. -DMANDIR=. -DDATADIR=. -DAIDIR=.
make install DESTDIR=${INSTALL_DIR}
then you can simply uninstall by deleting /home/userX/spring_release.
though.. we have a Debian repository which should contain the current spring release.
Re: last stable version of spring with git
Did you try to use the packages from unstable? If there is enough interest I could investigate to provide a backport if they don't work on a Lenny system.feldmaus wrote:Hi All,
I am using Debian Lenny and try to compile the sources. Therefore i want to get the sources with git. How do i get the latest stable version with git?
I do not want to update the sources every time manually!
regards Markus
Re: last stable version of spring with git
I still triedjandd wrote:Did you try to use the packages from unstable? If there is enough interest I could investigate to provide a backport if they don't work on a Lenny system.feldmaus wrote:Hi All,
I am using Debian Lenny and try to compile the sources. Therefore i want to get the sources with git. How do i get the latest stable version with git?
I do not want to update the sources every time manually!
regards Markus
Code: Select all
deb http://ppa.launchpad.net/spring/ubuntu intrepid main
deb-src http://ppa.launchpad.net/spring/ubuntu intrepid main
My wish is to have a simple way to get the last current version. How to modify my /etc/apt/sources.list to get only the spring package from debian testing and the rest from debian stable ? I think there will be dependancy problems.
regards Markus
Re: last stable version of spring with git
The current version of spring is packaged in the official Debian unstable repository. You can addfeldmaus wrote:I still triedjandd wrote:Did you try to use the packages from unstable? If there is enough interest I could investigate to provide a backport if they don't work on a Lenny system.feldmaus wrote:I am using Debian Lenny and try to compile the sources. Therefore i want to get the sources with git. How do i get the latest stable version with git?but this is not the current version.Code: Select all
deb http://ppa.launchpad.net/spring/ubuntu intrepid main deb-src http://ppa.launchpad.net/spring/ubuntu intrepid main
Code: Select all
deb http://ftp.de.debian.org/debian unstable main
If you don't want your whole system to be upgraded to Debian unstable you should also add a line
Code: Select all
APT::Default-Release "stable";
To install spring and springlobby from unstable you run
Code: Select all
aptitude -t unstable spring springlobby
Disclaimer: Please be aware that packages from unstable are not as well tested as those from a stable release. If you don't know what you are doing or what you are asked by aptitude please ask!
Re: last stable version of spring with git
unstable, that is not good. There are to many dependencies. So this is not a good idea? A backport would be better.
regards Markus
regards Markus