1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

Removed duplicated code for moving doc, man and info into share/ subdir.

svn path=/nixpkgs/trunk/; revision=9236
This commit is contained in:
Yury G. Kudryashov 2007-09-01 18:34:16 +00:00
parent 245655b7a1
commit d215554ba4

View file

@ -715,14 +715,17 @@ fixupW() {
for d in $forceShare; do
if test -d "$prefix/$d"; then
if test -d "$prefix/share/$d"; then
echo "Both $d/ and share/$d/ exists, aborting"
echo "Both $d/ and share/$d/ exists!"
else
echo Fixing location of $dir/ subdirectory
ensureDir $prefix/share
if test -w $prefix/share; then
mv -v $prefix/$d $prefix/share
ln -sv share/$d $prefix
fi
fi
else
echo "No $d/ subdirectory, skipping."
fi
done;
fi
@ -745,23 +748,6 @@ fixupW() {
fi
fi
if test -z "$dontFixupShare"; then
for dir in doc info man; do
if test -d "$prefix/$dir"; then
if test -d "$prefix/share/$dir"; then
echo Both "$prefix/$dir" and "$prefix/share/$dir" exists!
else
echo Fixing location of $dir/ subdirectory
ensureDir "$prefix/share"
if test -w $prefix/share; then
mv -v "$prefix/$dir" "$prefix/share"
ln -sv "share/$dir" "$prefix"
fi
fi
fi
done
fi
if test "$havePatchELF" = 1 -a -z "$dontPatchELF"; then
patchELF "$prefix"
fi