Permalink
Browse files

create extension lib directories before copying

  • Loading branch information...
1 parent c2f0226 commit 56f3312f13559e1548fff0f78ca062d0382d2808 @rtomayko committed Mar 14, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 rpg-package-install.sh
@@ -35,7 +35,7 @@ test "$1" = '-f' && {
# Attempt to hard link <dest> to <source> but fall back to cp(1) if
# you're crossing file systems or the ln fails otherwise.
rpg_ln () {
- if ln -f "$1" "$2"
+ if ln -f "$1" "$2" 2>/dev/null
then notice "$2 [ln]"
else notice "$2 [cp]"
cp "$1" "$2"
@@ -149,12 +149,12 @@ test -n "$exts" && {
echo "$exts" |
while read dl
do
- # make install sitearchdir=/lib
prefix=$(
grep '^target_prefix.=' "$(dirname $dl)/Makefile" |
sed 's/^target_prefix *= *//'
)
dest="${RPGLIB}${prefix}/$(basename $dl)"
+ mkdir -p "${RPGLIB}${prefix}"
rpg_ln "$dl" "$dest"
echo "$dest" >> "$manifest"
done

0 comments on commit 56f3312

Please sign in to comment.