portage-conf/link.sh

14 lines
309 B
Bash
Executable File

#!/bin/sh
files=($(ls $PWD))
dest="/etc/portage/"
for file in "${files[@]}"; do
# Ignore non-portage stuff
if [ "$file" != "link.sh" -a "$file" != "LICENSE" -a "$file" != "README.md" -a "$file" != "world" -a "$file" ]; then
ln -sf "$PWD/$file" "$dest"
fi
#ln -sf "$PWD/world" "/var/lib/portage/"
done