@fanthom,
sed command problems with new rc2 release:
Code: Select all
guest@porteus:~/Downloads$ cat ck_kertex.sh
#!/bin/sh
# Checking some utilities needed for kerTeX packaging system.
#
#$Id: ck_kertex.sh,v 1.1 2012/03/12 21:26:30 tlaronde Exp $
# C) 2012 Thierry Laronde
# All rights reserved and no guarantee!
# Tous droits réservés et aucune garantie !
#
: ${PKG_SED:=sed}
echo "Testing $(command -v $PKG_SED)"
echo
#===== Adapted from pkglib.sh
#
_pkg_x_cid()
{
ed $0 <<EOT >/dev/null 2>&1
/^BEGIN_CID/+,/^END_CID/-w /tmp/$$.CID
q
EOT
}
#BEGIN_GET_REC_SEDCMD
#/^TAG:/ {
#s///
#/^$/!p
#:tag
#n
#/^[A-Z][A-Z0-9_]*:/b
#p
#b tag
#}
#
#END_GET_REC_SEDCMD
# Extracting will be done at initialization.
#
_pkg_x_get_rec_sedcmd()
{
$PKG_SED -n -e '/^#BEGIN_GET_REC_SEDCMD/,/^#END_GET_REC_SEDCMD/s/^#//p' \
$0\
| $PKG_SED -e '/^BEGIN/d' -e '/^END/d'\
>/tmp/$$.get_rec_sedcmd
}
pkg_get_rec()
{
ed /tmp/$$.get_rec_sedcmd <<EOT >/dev/null 2>&1
/^\/\^[A-Z][A-Z0-9_]*:/s!!/^$1:!
w
q
EOT
$PKG_SED -n -f /tmp/$$.get_rec_sedcmd /tmp/$$.CID
}
_pkg_x_cid
echo "I have extracted this:"
echo "===================="
cat /tmp/$$.CID
echo "===================="
echo
_pkg_x_get_rec_sedcmd
echo "I have extracted the commands:"
echo "===================="
cat /tmp/$$.get_rec_sedcmd
echo "===================="
echo
echo "And $PKG_SED prints:"
echo
pkg_get_rec SOURCES
rm /tmp/$$.*
exit 0
# Since we have exited above, no need to comment out the CID.
BEGIN_CID
NAME: latex
VERSION: 2e
KERTEX_VERSION: 0.999.1.5
SOURCES:
ftp://anonymous:[email protected]/
LCD HOME/
GET /tex-archive/macros/latex/base.zip
GET /tex-archive/macros/latex/doc.zip
LCD /lib/fonts/tfm/latex
GET fonts/tfm/ /\.tfm$/
END:
END_CID
guest@porteus:~/Downloads$ ./ck_kertex.sh
Testing /usr/bin/sed
I have extracted this:
====================
NAME: latex
VERSION: 2e
KERTEX_VERSION: 0.999.1.5
SOURCES:
ftp://anonymous:[email protected]/
LCD HOME/
GET /tex-archive/macros/latex/base.zip
GET /tex-archive/macros/latex/doc.zip
LCD /lib/fonts/tfm/latex
GET fonts/tfm/ /\.tfm$/
END:
====================
I have extracted the commands:
====================
/^TAG:/ {
s///
/^$/!p
:tag
n
/^[A-Z][A-Z0-9_]*:/b
p
b tag
}
====================
And sed prints:
guest@porteus:~/Downloads$
root@porteus:/home/guest/Downloads# ./ck_kertex.sh
Testing /usr/bin/sed
I have extracted this:
====================
NAME: latex
VERSION: 2e
KERTEX_VERSION: 0.999.1.5
SOURCES:
ftp://anonymous:[email protected]/
LCD HOME/
GET /tex-archive/macros/latex/base.zip
GET /tex-archive/macros/latex/doc.zip
LCD /lib/fonts/tfm/latex
GET fonts/tfm/ /\.tfm$/
END:
====================
I have extracted the commands:
====================
/^TAG:/ {
s///
/^$/!p
:tag
n
/^[A-Z][A-Z0-9_]*:/b
p
b tag
}
====================
And sed prints:
ftp://anonymous:[email protected]/
LCD HOME/
GET /tex-archive/macros/latex/base.zip
GET /tex-archive/macros/latex/doc.zip
LCD /lib/fonts/tfm/latex
GET fonts/tfm/ /\.tfm$/
I don't know if you may recall the thread about sed command:
http://forum.porteus.org/viewtopic.php ... 2f91467fe
The good thing, is that brokenman's original fix still works, but I guess this got passed through the nets, like small fish pass through the nets when a big shark or whale is caught in the ocean
Most modules work here, crossing my fingers.
EDIT:
I notice that okular and epdfview are both present, is there any reason to prefer one over the other? i.e, does okular open Postscript files, or djvu files, and epdfview does not? or can one live without the other.
EDIT2:
Seems to be faster than previous version, and snappier too! LXDE looks awesome and kde also rocks. Only miss is the k3b cd/dvd writing program

But if we need it, we can use older version of porteus no need to cry over spilled millk
Thanks for making porteus, as I find gotchas, I will report them here

Hopefully I find nothing bad only good things!