Contents |
For those who think CVS might be a bit too complicated to deal with, here are (I think) the minimal commands. See Notes:Sudo section for ideas on how to make updating Xastir even simpler.
##cvs -z3
update -P -d
status -v
diff -u
cvs -d:pserver:anonymous@xastir.cvs.sourceforge.net:/cvsroot/xastir login
There are three versions of Xastir available, bleeding edge, Release, and Stable, there installation is described below.
cvs -d:pserver:anonymous@xastir.cvs.sourceforge.net:/cvsroot/xastir co xastir
cvs -d:pserver:anonymous@xastir.cvs.sourceforge.net:/cvsroot/xastir co -r RELEASE xastir
cvs -d:pserver:anonymous@xastir.cvs.sourceforge.net:/cvsroot/xastir co -r STABLE xastir
All done! You now have the latest development sources on your computer. Now you can forget about all of the previous instructions unless you delete the entire tree and want to start over from scratch.
Note: If you choose the "RELEASE" or "STABLE" tags, those tags will become sticky, so that "cvs update" commands will update to the latest versions of files containing those tags. If you wish to remove this sticky option so that you can synchronize to a different tag or the latest developer's CVS, see the "cvs update -A" command below.
Once all this is in place, just cd into the "xastir" directory at any time, type "cvs update", then type "make install" and you'll have the latest development stuff installed on your system.
Here are the commands to do if you want a clean build of the latest sources, and want configure to recheck all the libraries and header files that Xastir needs:
cd xastir cvs update ./bootstrap.sh ./configure (make clean;make -j3 2>&1) | tee make.log sudo make install sudo chmod 4555 /usr/local/bin/xastir (only needed if using kernel AX.25) xastir
Notes:
cvs update -r RELEASE
or
cvs update -r STABLE
Once you specify a revision tag (RELEASE or STABLE), that option becomes "sticky" for future checkouts and updates. That means you only need to type "cvs update" in order to update your code to the latest sources containing that tag.
cvs update -A
will make the cvs update command track to the most recently submitted versions again (will make the RELEASE or STABLE options un-sticky). To review:
cvs update -A # To get to developers sources.
cvs update -r STABLE # To get to latest stable sources.
cvs update -r RELEASE # To get to latest released sources.
I use these aliases the most (defined in my bash shell startup files):
alias cvsdiff='cvs diff -w -r HEAD'
alias cvsstat2='cvs -n -q update'
alias cvsstat3='(cvs status 2>&1) | grep -E "Status: | Examining" | grep -v Up-to-date | grep -v Makefile.in'
to see if anything has changed. cvsstat3 is the most useful one for me as a developer. If anything has, I can use this alias to see the details on a particular file:
alias cvsdiff='cvs diff -w -r HEAD'
cvsdiff main.c
cvs diff -w -r HEAD main.c
Then perhaps do an update on that file alone:
cvs update main.c
There are many more CVS commands and options. Many of them are more of use to the developers than the users. The above should be enough for most people to keep their copies in sync with the latest CVS development sources.
Now, in the "xastir" source directory (mine is in "~/src/xastir"), create a script that reads like this. I named my script "update-xastir" but nearly any name for the script will do:
-----------------cut here--------------------
#! /bin/sh
cvs update
./bootstrap.sh
./configure
sudo make clean
sudo make install
sudo chmod 4755 /usr/local/bin/xastir
-----------------cut here--------------------
Now type "chmod u+rwx update-xastir" to make that script executable.
Actually, we've just created a script for Xastir that implements the above and called it "update-xastir". Do a "cvs update" to get it.
Try out the script. Type:
./update-xastir
It should run through the entire update/configure/make/install process for Xastir. Remember to either change to the proper xastir directory before running it, or add a "cd" command at the beginning of the script so that it will run in the proper directory in all cases. If you add the proper "cd" command you can copy the script to /usr/local/bin and then run it as "update-xastir" from anywhere.
Windows users: You may need to remove the "sudo" keyword on each line to have it work properly for you.
A note from Gerry Creager as to another way to set up the sudoers file:
"I now consider it a good idea to add the "gifted" users to the 'wheel'
group and then solely enable wheel in /etc/sudoers; I've seen a recent
article also supporting this."