It's not a script but the method I use with OS X it's possible with Linux
I put the version CVS in my home.
You have a PGF folder
inside /tex/generic
inside /tex/latex
inside /tex/context
inside /tex/plain.
Personally I use only generic and latex.
You can get without CVS the files here sourceforge and you click on Download GNU tarball. You get pgf-pgf.tar.gz, you decompress and you install manually the folders.
To remove, it's possible to remove the folders "pgf" manually. Personally I compress (.zip) the folders and then I remove the uncompressed folders. If I have a problem with the new version, I decompress the archives (.zip)
For the manual with the CVS version :
I get the sources sources via CVS (in the directory
~/pgf). I proceed like this :
cd ~
cvs -z3 -d:pserver:anonymous@pgf.cvs.sourceforge.net:/cvsroot/pgf co -P pgf
then for the pgfmanual with pdftex
cd ~/pgf/doc/generic/pgf/version-for-pdftex/en
Create the folder 'plots' if this folder doesn't exist.
mkdir plots
You compile a first time:
TEXINPUTS=".:~/pgf//:" make
then you compile several times with :
TEXINPUTS=".:~/pgf//:" make dist
(You need to see if the links are fine.
makefile uses the good texmf.cnf.)
The link colors has been disabled by one of the PGF team (probably a matter of taste): you need to write colorlinks=true in the next file pgfmanual-en-main.tex:
remark from Christian Feuersänger
\usepackage{hyperref}
\hypersetup{%
colorlinks=false, % use true to enable colors below:
linkcolor=blue,%red,
filecolor=blue,%magenta,
pagecolor=blue,%red,
urlcolor=blue,%cyan,
citecolor=blue,
pdfborder=0 0 0,
}
Now you can create pgfmathtestsuite.pdf via :
cd ~/pgf/generic/pgf/testsuite/mathtest
pdflatex pgfmathtestsuite.tex
Finally you can create an archive TDS via :
cd ~; make -f pgf/scripts/pgf/Makefile.pgf_release
You get three files :
~/pgf_2.10-CVS.ChangeLog
~/pgf_2.10-CVS.pdf
~/pgf_2.10-CVS.tds.zip
Remark 1
With this method you don't have the part about the graphs. To get this section you need to use LuaLaTeX, but sometimes there are several problems. The last time, (15 days) It was not possible to get the entire manual. I get a part with pdflatex and another part with LuaLaTeX.
You need to inspect the file pgfmanual-en-main.tex to see what you need to make.
Remark 2
I put on my site the version 25-04-2012 files + pgfmanual
altermundus.com
tlcontribrepo if you work withtexlive(note that I cannot update thetlcontribpackage for several month due to an unidentified bug, see http://www.ntg.nl/pipermail/tlcontrib/2012-February/000212.html – cjorssen May 18 '12 at 18:37