|
From: Nathan H. <nj...@ma...> - 2002-08-24 12:17:23
|
Due to debian using gputils rather than gpasm here is a patch to make sdcc's inc2h.pl tool work out-of-the-box.
bash-2.05b$ cvs diff -du support/scripts/inc2h.pl
Index: support/scripts/inc2h.pl
===================================================================
RCS file: /cvsroot/sdcc/sdcc/support/scripts/inc2h.pl,v
retrieving revision 1.2
diff -d -u -r1.2 inc2h.pl
--- support/scripts/inc2h.pl 28 Jul 2002 14:30:45 -0000 1.2
+++ support/scripts/inc2h.pl 24 Aug 2002 12:10:41 -0000
@@ -28,7 +28,15 @@
$path = shift;
$processor = uc $processor;
-$path = "/usr/share/gpasm" if ($path eq '');
+if ($path eq '') {
+ if ( -x "/usr/share/gputils") {
+ $path = "/usr/share/gputils";
+ } elsif ( -x "/usr/share/gpasm") {
+ $path = "/usr/share/gpasm";
+ } else {
+ die "Could not find gpasm includes.\n";
+ }
+}
#
# Read the symbols at the end of this file.
Still haven't got a program to work... But this is such cool stuff!
--
njh
http://www.csse.monash.edu.au/~njh/
|