#!/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