File: mkathena.PL

package info (click to toggle)
horae 071~svn536-1
  • links: PTS
  • area: contrib
  • in suites: wheezy
  • size: 12,996 kB
  • sloc: perl: 67,215; lisp: 744; sh: 78; makefile: 76; ansic: 35
file content (19 lines) | stat: -rwxr-xr-x 691 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl -w
use Fatal qw(open close);
my $mode = 0755;

## ----- build ATHENA
(-e "bin/athena") and unlink "bin/athena";
open my $TO, ">bin/athena";
foreach my $p (qw(top head main_window draw_properties set_properties file
		  group_ops align pixel calibrate deglitch truncate sa_fluo
		  mee diff lograt peakfit lcf rebin smooth convolve demo
		  macro palettes plot plotstyles project report rc
		  setup mru prefs registry keys teach_ft series misc)) {
  open my $FROM, "athena_parts/$p.pl";
  foreach my $l (<$FROM>) { print $TO $l };
  close $FROM
};
close $TO;
print "===> Assembled athena from its parts (athena_parts/) and wrote to bin/athena.\n";
chmod $mode, 'bin/athena';