[darcs-users] how to build a darcs executable that reports its version number correctly
zooko
zooko at zooko.com
Wed Jul 2 17:38:33 UTC 2008
On Jul 2, 2008, at 7:03 AM, David Roundy wrote:
> Just a script to reproduce the bug would be sufficient,
> and could be extended to be a unit test.
Okay, there follows the script that I currently use to build darcs
(which I do rather often, since I always want the latest and greatest
darcs on various boxes owned by me or my wife or allmydata.com). I
just ran it on a fresh Ubuntu Hardy server and the resulting darcs
executable emitted "2.0.2 (release)" in response to --version.
Hm. In other words, it *worked*. Now I don't know why it didn't
work on the other machine earlier. I will investigate next time I am
rebuilding darcs.
Regards,
Zooko
#/bin/sh
darcs get --lazy --tag=2.0.2 http://darcs.net
cd darcs.net
autoconf
NAME=darcs-2.0.2
STOWDIR=/usr/local/stow/
INSTDIR=$STOWDIR$NAME
./configure --prefix=$INSTDIR
make
make check
sudo mkdir -p $INSTDIR
sudo chown `whoami` $INSTDIR
make install
cd $STOWDIR
sudo stow -v $NAME
More information about the darcs-users
mailing list