echo '#!/bin/sh' >./gpg_dearmor
echo "../g10/gpg --no-options --no-greeting \
--no-secmem-warning --batch --dearmor" >>./gpg_dearmor
chmod 755 ./gpg_dearmor
./gpg_dearmor > ./pubring.gpg < ./pubring.asc
gpg: keyblock resource
`/var/tmp/portage/app-crypt/gnupg-1.4.13/homedir/.gnupg/secring.gpg': file open
error
gpg: keyblock resource
`/var/tmp/portage/app-crypt/gnupg-1.4.13/homedir/.gnupg/pubring.gpg': file open
error