component-paths.pl from EmStar at Krugle
Show component-paths.pl syntax highlighted
#!/usr/bin/perl -w
#
# component-paths.pl <target> <app-path> <platform>
#
# Used to output a list of dependencies of a particular target given the application
# path and the platform specified (using ncc -v -E command)
#
#
use strict;
use Cwd;
if ($#ARGV != 2){
print "usage: $0 target app-path platform\n";
exit 1;
}
my $target = $ARGV[0];
my $appPath = $ARGV[1];
my $platform = $ARGV[2];
chdir $appPath or die "can't cd to $appPath\n";
my $appdir = cwd();
open(INF,"CFLAGS=\"-v -E\" make $platform 2>&1 | grep preprocessing|");
print "$target $target" . ".d: ";
my $firsttime = 1;
while(<INF>){
if ($firsttime == 0){
print "\\\n\t";
}
else {
print " ";
}
chomp;
my @w = split;
if ($w[$#w] =~ /^\//){
print "$w[$#w] ";
}
else {
print "$appdir/$w[$#w] ";
}
$firsttime = 0;
}
print "\n";
close INF;
See more files for this project here
EmStar is a software system for developing and deploying wireless sensor networks involving Linux-based platforms. As the wireless sensor network community has attempted to deploy more complex designs---large-scale, long-lived systems that need self-organization and adaptivity---a number of difficult software design issues have arisen. Advances in software design have not kept pace with the capabilities of hardware. This is because designing for an adaptive, efficient, and useful sensor network has turned out to be surprisingly complex and difficult. EmStar is a Linux-based software framework, whose goal is to dramatically reduce this complexity, enabling work to be shared and reused, and simplifying and speeding the design of new sensor network applications.
Project homepage:
http://cvs.cens.ucla.edu/emstar/
Programming language(s): C,Shell Script
License: other
ceiling-install.pl
component-paths.pl
echoall.sh
flashall
push-upgrade.sh
tosinstall
tosinstall-jtag
tosremake
uisp-stargate
uisp-ucb-20020626
uisp-ucb-20031126