From: Mark Finlay (sisob at domain eircom.net)
Date: Fri 07 Jun 2002 - 16:17:32 IST
I'm writing an addon to OpenOffice.org and I need to be able to autodetect where on the system
the use has installed OpenOffice.org. So far I've got the following bash script:
echo "Where is the man OpenOffice Install"
echo "" >> /etc/profile
echo "export PATH=\"\$PATH:$location/program\" " >> /etc/profile
echo "export EOFFICE=\"$location\" " >> /etc/profile
That lets me use the oo location in my scripts but I'd prefer to autodetect
the program location. OpenOffice puts the .sversionrc file in the users home directory
containing the following text:
I need to suck out the location, in this case /home/sisob/OpenOffice.org1.0
to use in the bash script. Anyone want to right me a scriptlet in perl of bash
or something standard like that. Go on: show us all how leet a coder you are.
-- Mark Finlay "sisob's linux eXPerience" http://sisob.dyndns.org Registered Linux User: #243436
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:17:08 GMT