Skip to content
Snippets Groups Projects
Select Git revision
  • 5ce4cf941d52e20384b49bde22f3a861e8ac5740
  • master default protected
  • 559-i18n-labels-for-pids
  • replication_test
  • 556-usage-statistics
  • 553-semantic-recommendation-2
  • release-1.10 protected
  • dev protected
  • 553-semantic-recommendation
  • release-1.9 protected
  • 551-init-broker-service-permissions
  • 549-test-oai-pmh
  • 545-saving-multiple-times-breaks-pid-metadata
  • 499-standalone-compute-service-2
  • 539-load-tests
  • hotfix/helm-chart
  • luca_ba_new_interface
  • 534-bug-when-adding-access-to-user-that-is-not-registered-at-dashboard-service
  • release-1.8 protected
  • 533-integrate-semantic-recommendation
  • feature/openshift
  • v1.10.3 protected
  • v1.10.2 protected
  • v1.10.1 protected
  • v1.10.0-rc13 protected
  • v1.10.0-rc12 protected
  • v1.10.0-rc11 protected
  • v1.10.0-rc10 protected
  • v1.10.0-rc9 protected
  • v1.10.0-rc8 protected
  • v1.10.0-rc7 protected
  • v1.10.0-rc6 protected
  • v1.10.0-rc5 protected
  • v1.10.0-rc4 protected
  • v1.10.0-rc3 protected
  • v1.10.0-rc2 protected
  • v1.10.0rc1 protected
  • v1.10.0rc0 protected
  • v1.10.0 protected
  • v1.9.3 protected
  • v1.9.2 protected
41 results

python.md

Blame
  • fixdiff.pl 1.57 KiB
    #!/usr/local/bin/perl
    # FILE %afs/etc/lib/GG/aix/fixdiff.pl
    #
    # written:       2000-01-26
    # latest update: 2000-01-26 21:36:52
    # $Id: fixdiff.pl,v 1.2 2007/09/25 11:41:59 gonter Exp $
    #
    
    use AIX::Software::Maintenance;
    
    $obj= new AIX::Software::Maintenance;
    
    ARGUMENT: while (defined ($arg= shift (@ARGV)))
    {
      if ($arg =~ /^-/)
      {
        # else
        {
          &usage ($arg eq '-help' ? '' : "invalid argument '$arg'");
          exit (0);
        }
        next;
      }
    
      push (@INSTALLED, $arg);
    }
    
    foreach $arg (@INSTALLED)
    {
      $obj->read_lslpp ($arg);
    }
    
    # experimental features
    my ($missing1, $missing2)= $obj-> _list_missing_filesets ($INSTALLED[0], $INSTALLED[1]);
    
    my $prt_missing= fileset_string ($missing1);
    
    
    
    if ($prt_missing)
    {
      $cmd= "/usr/lib/instl/sm_inst installp_cmd -a -Q -d '.' -f '"
            . $prt_missing
            . "' '-c' '-N' '-g' '-X'   '-G' '-V2'";
    
      $fnm_out= $INSTALLED[1].'.missing';
      print "$fnm_out:\n", $cmd, "\n";
      open (BAT, ">$fnm_out") || die;
      print BAT $cmd, "\n";
      close (BAT);
    }
    
    open (FO, '>' . 'xxxfilesets') or die;
    foreach my $x (@$missing2)
    {
      print FO join (':', @$x), "\n";
    }
    close (FO);
    
    exit (0);
    
    # ------------------
    # this should bring a nice list in the format
    #   @@fileset level[,@@fileset level]*
    sub fileset_string
    {
      my $ref= shift;  # ref= [[fileset, level]*]
      my @res;
    
      foreach $fs_ref (@$ref)