Bruce Dubbs wrote these words on 08/22/05 00:14 CST:
> Randy McMurchy wrote:
>
>>[EMAIL PROTECTED]: /home/rml/build > for FILENAME in \
>>`cat Installed/xpdf-3.00pl3/filelist.log`; do rm $FILENAME; done
>
> I think you have a syntax error here, but I get the idea.
Where is the error? I cut and pasted this. Only thing different
is I added the backslash so that the line wouldn't be too long
in the email.
> BTW, how to you automate creation of filelist.log?
Here is excerpts from my template. I have a script that uses this
template to create a build file (the finds must be executes as root):
(before unpacking)
find / -xdev \
-wholename '/home/rml/build/Installed/Template-Change' \
-prune -o -print \
>Installed/Template-Change/filelist_start.log 2>&1
(after deleting the source dir)
find / -xdev \
-wholename '/home/rml/build/Installed/Template-Change' \
-prune -o -print \
>Installed/Template-Change/filelist_end.log 2>&1
exit
diff Installed/Template-Change/filelist_start.log \
Installed/Template-Change/filelist_end.log \
>Installed/Template-Change/filelist_temp.log
grep "^> " Installed/Template-Change/filelist_temp.log \
>Installed/Template-Change/filelist_tmp.log
sed -i -e "s/^> //" Installed/Template-Change/filelist_tmp.log
sort Installed/Template-Change/filelist_tmp.log \
>Installed/Template-Change/filelist.log
rm -f Installed/Template-Change/filelist_*.log
I realize it could be refined, but it works for me.
--
Randy
rmlscsi: [GNU ld version 2.15.94.0.2 20041220] [gcc (GCC) 3.4.3]
[GNU C Library stable release version 2.3.4] [Linux 2.6.10 i686]
00:13:01 up 141 days, 23:46, 3 users, load average: 1.08, 1.08, 0.67
--
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page