summaryrefslogtreecommitdiff
path: root/java/eclipse-langpack/files/install.sh
blob: e12798585bef4e8fbf00b81a70103e74b2aa7dcd (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}/${dir}
done

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