portage-conf/link.sh
2020-12-02 20:07:05 +02:00

14 lines
308 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