-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpermissions.sh
32 lines (26 loc) · 1.02 KB
/
permissions.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
# Set executable permissions
VERSION=${VERSION:-14.1.0}
[ -z "$USER" ] && echo "USER not set!" && exit 1
echo "User: ${USER}"
echo "GCC Version: ${VERSION}"
chown ${USER} avr/bin/*
chown ${USER} bin/*
chown ${USER} libexec/gcc/avr/${VERSION}/cc1
chown ${USER} libexec/gcc/avr/${VERSION}/cc1plus
chown ${USER} libexec/gcc/avr/${VERSION}/collect2
chown ${USER} libexec/gcc/avr/${VERSION}/g++-mapper-server
chown ${USER} libexec/gcc/avr/${VERSION}/lto1
chown ${USER} libexec/gcc/avr/${VERSION}/lto-wrapper
chown ${USER} libexec/gcc/avr/${VERSION}/install-tools/*
chown ${USER} libexec/gcc/avr/${VERSION}/plugin/gengtype
chmod +x avr/bin/*
chmod +x bin/*
chmod +x libexec/gcc/avr/${VERSION}/cc1
chmod +x libexec/gcc/avr/${VERSION}/cc1plus
chmod +x libexec/gcc/avr/${VERSION}/collect2
chmod +x libexec/gcc/avr/${VERSION}/g++-mapper-server
chmod +x libexec/gcc/avr/${VERSION}/lto1
chmod +x libexec/gcc/avr/${VERSION}/lto-wrapper
chmod +x libexec/gcc/avr/${VERSION}/install-tools/*
chmod +x libexec/gcc/avr/${VERSION}/plugin/gengtype