#!/bin/sh if [ $# -ne 1 ]; then echo Error exit 1 fi branch=REL`echo $1 | tr . _`_STABLE mkdir i/$1 git clone --reference postgresql.git -b $branch git://git.postgresql.org/git/postgresql.git $1 cd $1 ln -s ../i/$i i cd .git/info ln -sf ../../../git-info-exclude exclude