diff options
Diffstat (limited to 'java/eclipse-langpack/files')
-rw-r--r-- | java/eclipse-langpack/files/install.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/java/eclipse-langpack/files/install.sh b/java/eclipse-langpack/files/install.sh new file mode 100644 index 000000000000..bd762ff7a2a2 --- /dev/null +++ b/java/eclipse-langpack/files/install.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +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 + install -d -o ${owner} -g ${group} -m ${dperm} ${prefix}/$dir +done + +for file in `sed "/^@dirrm /d; s|^eclipse/||" $plist`; do + install -c -o ${owner} -g ${group} -m ${fperm} ${wrksrc}/${file} ${prefix}/eclipse/${file} +done |