File: rebuild_iff_necessary.pm

package info (click to toggle)
libnet-imap-simple-perl 1.2211-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 372 kB
  • sloc: perl: 1,574; makefile: 4
file content (10 lines) | stat: -rw-r--r-- 215 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10

package rebuild_iff_necessary;

BEGIN {
    use IPC::System::Simple qw(systemx);
    systemx($^X, "Makefile.PL") if not -f "Makefile" or ((stat "Makefile")[9] > (stat "Makefile.PL")[9]);
    systemx("make");
}

1;