> >#!/bin/sh
> >
> >cd $PACKAGES
> >for i in *.lrp ; do tar xzf $i var/lib/lrpkg/*.help 2> /dev/null; done
> >mv var/lib/lrpkg/*.help .
> >rm -rf var/lib/lrpkg
> >
> >...how's that?
>
> David,
> That's slick. The help file is part of the package format already. I will
> need to modify our .htaccess file, and add:
> AddType text/plain help
>
> That way people will be able to browse the help files. Otherwise
> they will
> download as binary.
>
> The new text format would be:
> packagename.help
what if we modified the script like so...
#!/bin/sh
cd $PACKAGES
for i in `ls *.lrp`
do
echo $i
tar xzf $i var/lib/lrpkg
cd var/lib/lrpkg
rootpkg=`echo $i|sed 's/.lrp//'`
[ -f $rootpkg.version ] && mv $rootpkg.help $rootpkg.`head -n1
$rootpkg.version`.help
cd $PACKAGES
done
mv var/lib/lrpkg/*.help .
rm -rf var/lib/lrpkg
--
This way if they have a version number, we get it.
The package format would then be packagename.version.help
Andrew Hoying
> Please correct me if I got that wrong.
>
> --
> Mike Noyes <[EMAIL PROTECTED]>
> http://leaf.sourceforge.net/
_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel