On Saturday 13 April 2002 13:14, Mike Noyes wrote:
> Thanks. This works fairly well. I still get errors from tar, but I
> don't see any way to force it to ignore them.
Try:
> Examples:
> $ ./package-date.sh > test.txt 2>&1
To something like:
> #! /bin/bash
> find leaf/ -iname "*.lrp" |
> while read file ; do
> echo `basename "$file"` $'\t' \
> `tar tvzf "$file" 2>&1| awk '{print $4}' | sort -n | tail -n 1`
$'\t' \
> "$file";
> done |
> sort
> Now all I have to do is get the program name and version. Then
> determine the libc version with ldd.
>
> Jeff provided this snippet for checking the libc version with ldd.
I added a line to check for the version # to the script:
> md ${package}
> cd ${package}
> gunzip ${packagelrppath}
> ldd `ls bin/* sbin/* usr/bin usr/sbin usr/local/bin usr/local/sbin`
> \
>
> | grep -v ':$' | sort | uniq
awk '{print $1}' var/lib/lrpkg/${package}.version
> cd ..
> rm -R ${package}
>
> I'll have to take a look at each package to determine program name
> and version.
>
> var/lib/lrpkg/package.help
> var/lib/lrpkg/package.version
>
> Any suggestions for accomplishing these tasks are appreciated.
>
> Thanks again for the help. :-)
--
~Lynn Avants
aka Guitarlynn
guitarlynn at users.sourceforge.net
http://leaf.sourceforge.net
If linux isn't the answer, you've probably got the wrong question!
_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel