mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2025-04-21 12:27:27 +03:00
rescue files from svn.openmoko.org
This commit is contained in:
26
old-boom/boom
Executable file
26
old-boom/boom
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
|
||||
sub usage
|
||||
{
|
||||
print STDERR "usage: $0 command [arg ...]\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
&usage unless @ARGV;
|
||||
|
||||
($d = $0) =~ s|/[^/]*$||;
|
||||
if ($d eq "") {
|
||||
$p = "/";
|
||||
} elsif ($d =~ /^\//) {
|
||||
$p = "$d";
|
||||
} else {
|
||||
chomp($cwd = `pwd`);
|
||||
$p = "$cwd/$d";
|
||||
}
|
||||
|
||||
$cmd = shift @ARGV;
|
||||
$cmd = "$p/$cmd" unless $cmd =~ m|/|;
|
||||
exec("perl", "-I", $p, $cmd, @ARGV);
|
||||
die "exec perl: $!";
|
||||
Reference in New Issue
Block a user