Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

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

0 comments on commit 56f3312

Please sign in to comment.