On Thu, 2013-02-14 at 07:17 +0200, Kustaa Nyholm wrote:
> If so, how can I keep the old and new sdcc and gputils
> separate so that I can use both for the time being?

Hi,

What I do is to make seperate directories for each
version of sdcc in /opt/ and have a symbolic link
to it :

roelofh@castle:~$ ll /opt/
lrwxrwxrwx  1 root       root     9 Feb  8 14:58 sdcc -> sdcc-8413/
drwxr-xr-x  4 root       root  4096 Dec 26  2011 sdcc-7129/
drwxr-xr-x  6 root       root  4096 Jun 11  2012 sdcc-7867/
drwxr-xr-x  6 root       root  4096 Jul 11  2012 sdcc-8035/
drwxr-xr-x  6 root       root  4096 Jul 23  2012 sdcc-8053/
drwxr-xr-x  5 root       root  4096 Feb  8 14:58 sdcc-8413/

roelofh@castle:~$ env|grep PATH
PATH=/usr/local/sbin:/usr/sbin:/sbin:/opt/mspgcc-461/bin:
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:
/opt/eclipse:/opt/sdcc/bin

If I need an older version for some odd reason I just have
to change the symbolic link.

Make sure you configure and build sdcc from source with the
following included in the ./configure command line :

--prefix=/opt/sdcc-1234

Where 1234 is the build number of course :-)

roelof



------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to