aboutsummaryrefslogtreecommitdiffstats
path: root/java/eclipse-langpack/files/install.sh
blob: 1ac25893a348dcbffbdfa897241a2df942c5ab07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

WRKDIR=$1; PREFIX=$2
OWNER=$3; GROUP=$4; DPERM=$5; FPERM=$6

cd ${WRKDIR}
for dir  in `find eclipse -type d | sort`; do
    install -d -o ${OWNER} -g ${GROUP} -m ${DPERM} ${PREFIX}/lib/${dir}
done

for file in `find eclipse -type f | sort`; do
    install -c -o ${OWNER} -g ${GROUP} -m ${FPERM} ${file} ${PREFIX}/lib/${file}
done