[dokuwiki] Re: using darcs ...
- From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Sat, 25 Jun 2005 09:26:19 +0200
On Sat, 25 Jun 2005 10:31:51 +0530
"Sameer D. Sahasrabuddhe" <sameerds@xxxxxxxxxxxxx> wrote:
> > The repository got downloaded as a series of ~450 patches ... I
> > looked through the darcs manual, and there's this option "--partial"
> > that works with something called "checkpoints" created by the "darcs
> > optimise" command ... could that be used to reduce the number of
> > individual patches being downloaded? Every release could be a
> > checkpoint for example ...
>
> I tried checkpoints myself ... used "darcs tag --checkpoint" on the
> complete repository that I recently pulled. Then I tried pulling the
> same repository into another place using "darcs get --partial". This
> time, darcs fetched a single patch containing everything. All the
> patches in the original repository are around 2.5MB, with roughly ~450
> requests generated for those files. But with the partial tree, there
> was a single file of size 450kb ... I am not an expert, but I've a
> feeling that hosting servers and proxies will be rather happy with
> this behaviour ...
Sounds very interesting. I will have a look at the darcs doku to see how to
best use this.
> > Also, there is no Makefile to create a tarball from the repository
> > itself ... certain files in conf have a ".dist" extension which I
> > assume are meant to be processed before creating the tarball ...
> > would like to have a Makefile in the repository itself which can do
> > that. Basically something that works with the "darcs dist".
>
> Finally figured out that there is no Makefile ... the files ending in
> "dist" are named in this manner so that they don't end up over-writing
> the existing files at the users end ... is that correct?
Partly correct. I use a simple shell script for packaging dokuwiki. I attached
it but it isn't very spectacular and I think not useful for most people anyway.
Andi
#!/bin/sh
BDIR=/home/andi/projects/buildplace
WEB=/var/www/splitbrain/Programming/PHP/DokuWiki
DATE=`date '+%Y-%m-%d'`
echo $DATE
cd $BDIR || exit
rm -rf dokuwiki*
darcs get http://dev.splitbrain.org/darcs/dokuwiki
cd dokuwiki || exit
rm -rf attic/*
rm -rf data/_cache
rm -rf media/_cache
rm -rf _darcs
#rm data/start.txt
rm -f test.php
rm -f langcheck.php
rm -f build.sh
rm -f inc/*.bak
rm -rf inc/parser/tests
mkdir data/wiki
echo "====== PlayGround ======" > data/wiki/playground.txt
echo $DATE > VERSION
mv -f .htaccess.dist .htaccess
#mv -f conf/users.auth.dist conf/users.auth
#mv -f conf/acl.auth.dist conf/acl.auth
rm -f changes.log
rm -f conf/local.php
cd ..
mv dokuwiki dokuwiki-$DATE
tar -czvf dokuwiki-$DATE.tgz dokuwiki-$DATE
echo
echo "now run:"
echo "mv $BDIR/dokuwiki-$DATE.tgz $WEB/"
- Follow-Ups:
- [dokuwiki] Re: using darcs ...
- From: Sameer D. Sahasrabuddhe
- References:
- [dokuwiki] using darcs ...
- From: Sameer D. Sahasrabuddhe
- [dokuwiki] Re: using darcs ...
- From: Sameer D. Sahasrabuddhe
Other related posts:
- » [dokuwiki] using darcs ...
- » [dokuwiki] Re: using darcs ...
- » [dokuwiki] Re: using darcs ...
- » [dokuwiki] Re: using darcs ...
- [dokuwiki] Re: using darcs ...
- From: Sameer D. Sahasrabuddhe
- [dokuwiki] using darcs ...
- From: Sameer D. Sahasrabuddhe
- [dokuwiki] Re: using darcs ...
- From: Sameer D. Sahasrabuddhe