portage-conf/link.sh

14 lines
308 B
Bash
Raw Normal View History

2020-07-03 11:21:03 +03:00
#!/bin/sh
files=($(ls $PWD))
dest="/etc/portage/"
for file in "${files[@]}"; do
2020-12-02 20:07:05 +02:00
# Ignore non-portage stuff
if [ "$file" != "link.sh" -a "$file" != "LICENSE" -a "$file" != "README.md" -a "$file" != "world" -a "$file" ]; then
2020-07-03 11:21:03 +03:00
ln -sf "$PWD/$file" "$dest"
fi
2020-12-02 20:07:05 +02:00
ln -sf "$PWD/world" "/var/lib/portage/"
2020-07-03 11:21:03 +03:00
done