While trying to fix a little problem of file location that I had screwed up w/ unionfs, I ended up running rm -rf ./usr/local (on another install, gentoo). I havn't tried booting into it yet, mostly because I just changed my cursor and I know for a fact that it was located in /usr/local/cursors.
I copied /usr/local/* .../usr/local, both systems are gentoo, but I'm positive that that's not good enough. But this should be easy to fix. I have gentoo building pkgs in the form tbz2 and I wnat to run a script that will look in every package located /32/All and find ones w/ /usr/local -- namely
Code:
tar -t --file=/32/All/$FILE | grep "usr/local"
There are two things missing.
#1 I need someway of outputing which archives actually have /usr/local, instead of just listing the files in the archive. If this proves impossible, I can always equery and figure it out or just rewrite the script to extract them.
#2 I need to somehow be able to store the files in All in a variable and feed them one at a time to the command, like a for loop.
I dont think #2 is that hard but I cant figure out how to do this.
Code:
for X in $"ls /32/All"
do
tar -t --file=/32/All/$X | grep "usr/local"
done