aboutsummaryrefslogtreecommitdiff
path: root/config.sh
blob: 5b9c376cf935fc7f831327f10b20b7c66a88b4c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# Exports config files

for file in $(find src -type f); do
    export clean=$(echo $file | cut -c 4-) #Removes src prefix
    install -d $(dirname $clean)
    install -m 644 $file $clean
done

for file in $(find home -type f); do
    export clean=/home/${USE}$(echo $file | cut -c 5-)
    install -o $USE -d $(dirname $clean)
    install -o $USE $file $clean
done