... or use less cut -n- paste, he, he, ;-)

[root@fulgore:/home/ftp/pub/linux/mandrake-devel/cooker/Mandrake/RPMS]#
rpm -qp --scripts XaoS-3.1pre1-11mdk.i586.rpm
postinstall script (through /bin/sh):
if [ -x /usr/bin/update-menus ];then /usr/bin/update-menus || true ;fi
                               ^^

postuninstall script (through /bin/sh):
if [ "$1" = "0" -a -x /usr/bin/update-menus ];then /usr/bin/update-menus
|| true;fi
                                             ^^


[root@fulgore:/home/ftp/pub/linux/mandrake-devel/cooker/Mandrake/RPMS]#
rpm -qp --scripts freeciv-1.11.0-4mdk.i586.rpm
postinstall script (through /bin/sh):
if [ -x /usr/bin/update-menus ];then /usr/bin/update-menus || true ;fi
                               ^^

postuninstall script (through /bin/sh):
if [ "$1" = "0" -a -x /usr/bin/update-menus ];then /usr/bin/update-menus
|| true;fi
                                             ^^

--
Eugenio Diaz, BSEE/BSCE
Linux Engineer
[EMAIL PROTECTED]



Reply via email to