topgit: avoid use of "install -D", which doesn't work on FreeBSD

svn path=/nixpkgs/trunk/; revision=26475
This commit is contained in:
Peter Simons 2011-03-23 20:32:12 +00:00
parent 6daacf02e0
commit fd81655bfb

View File

@ -16,7 +16,8 @@ stdenv.mkDerivation {
configurePhase = "export prefix=$out";
postInstall = ''
install -D -m 444 README "$out/share/doc/topgit-${version}/README"
ensureDir "$out/share/doc/topgit-${version}"
cp README "$out/share/doc/topgit-${version}/"
ensureDir "$out/etc/bash_completion.d"
make prefix="$out" install
mv "contrib/tg-completion.bash" "$out/etc/bash_completion.d/"