makefindnewrcs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #! /usr/local/bin/perl
  2. eval "exec /usr/local/bin/perl -S $0 $*"
  3. if $running_under_some_shell;
  4. $system = `uname -s`;
  5. $release = `uname -r`;
  6. $machine = `uname -m`;
  7. if ($system =~ m%SunOS%) {
  8. if ($machine =~ m%prep%) {
  9. $system = "SunOS_PPC";
  10. }
  11. }
  12. push(@targets,"findnewrcs.${system}");
  13. #
  14. # for hp need subsystems
  15. #
  16. if ($system =~ m%HP-UX%) {
  17. # if it's not 700 9.0, don't do HP-UX
  18. if ($machine =~ m%.*/7%) {
  19. if ($release =~ m%9\.%) {
  20. push(@targets,"findnewrcs.700.90");
  21. push(@targets,"findnewrcs.800.90");
  22. }
  23. elsif ($release =~ m%8\.%) {
  24. @targets = ("findnewrcs.700.807");
  25. }
  26. elsif ($release =~ m%10\.%) {
  27. @targets = ("findnewrcs.700.100");
  28. }
  29. }
  30. elsif ($machine =~ m%.*/8%) {
  31. if ($release =~ m%9\.%) {
  32. @targets = ("findnewrcs.800.90");
  33. }
  34. elsif ($release =~ m%8\.%) {
  35. @targets = ("findnewrcs.800.80");
  36. }
  37. elsif ($release =~ m%7\.%) {
  38. @targets = ("findnewrcs.800.70");
  39. }
  40. }
  41. elsif ($machine =~ m%.*/[34]%) {
  42. if ($release =~ m%9\.%) {
  43. @targets = ("findnewrcs.300.90");
  44. }
  45. elsif ($release =~ m%8\.%) {
  46. @targets = ("findnewrcs.300.80");
  47. }
  48. }
  49. }
  50. foreach $target (@targets) {
  51. system ("make load${target}");
  52. }