aboutsummaryrefslogtreecommitdiff
path: root/java/eclipse-langpack/files
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2004-01-17 20:31:28 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2004-01-17 20:31:28 +0000
commit58708c814757a9bdda9ff7e0b4793e3d70aa0730 (patch)
treef9e1c3979a56a67f04a0cc175303a29a4d8474d8 /java/eclipse-langpack/files
parent8dc6c581f127356ba1fddf5a18e821cffbf88567 (diff)
downloadports-58708c814757a9bdda9ff7e0b4793e3d70aa0730.tar.gz
ports-58708c814757a9bdda9ff7e0b4793e3d70aa0730.zip
Notes
Diffstat (limited to 'java/eclipse-langpack/files')
-rw-r--r--java/eclipse-langpack/files/install.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/java/eclipse-langpack/files/install.sh b/java/eclipse-langpack/files/install.sh
index bd762ff7a2a2..b84619bfe0dd 100644
--- a/java/eclipse-langpack/files/install.sh
+++ b/java/eclipse-langpack/files/install.sh
@@ -4,10 +4,16 @@ wrksrc=$1; prefix=$2
owner=$3; group=$4; dperm=$5; fperm=$6
plist=$7
-for dir in `sed -n "s|^@dirrm ||p" $plist | sort`; do
+for subr in ${PLIST_SUB}; do
+ plist_sub="${plist_sub} `echo $subr|sed 's/^\([^=][^=]*\)=\(.*\)$/-e s|%%\1%%|\2|g/'`"
+done
+
+sed $plist_sub ${plist} > ${wrksrc}/plist.tmp
+
+for dir in `sed -n "s|^@dirrm ||p" ${wrksrc}/plist.tmp | sort`; do
install -d -o ${owner} -g ${group} -m ${dperm} ${prefix}/$dir
done
-for file in `sed "/^@dirrm /d; s|^eclipse/||" $plist`; do
+for file in `sed "/^@dirrm /d; s|^eclipse/||" ${wrksrc}/plist.tmp`; do
install -c -o ${owner} -g ${group} -m ${fperm} ${wrksrc}/${file} ${prefix}/eclipse/${file}
done