open-src/common/pkg-manifest-generate.pl
changeset 1088 1c99106ccbe0
parent 970 272328fe1b4a
child 1172 4597acbe535f
equal deleted inserted replaced
1087:a8aa060182e1 1088:1c99106ccbe0
     1 #! /usr/perl5/bin/perl
     1 #! /usr/perl5/bin/perl
     2 #
     2 #
     3 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
     3 # Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
     4 #
     4 #
     5 # Permission is hereby granted, free of charge, to any person obtaining a
     5 # Permission is hereby granted, free of charge, to any person obtaining a
     6 # copy of this software and associated documentation files (the "Software"),
     6 # copy of this software and associated documentation files (the "Software"),
     7 # to deal in the Software without restriction, including without limitation
     7 # to deal in the Software without restriction, including without limitation
     8 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
     8 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
   113   }
   113   }
   114 
   114 
   115   my $pkg_name = required_option ('pkg_name',
   115   my $pkg_name = required_option ('pkg_name',
   116 				  'when not merging with existing manifest.');
   116 				  'when not merging with existing manifest.');
   117 
   117 
       
   118   my $pkg_vers = '$(PKGVERS)';
       
   119   if (exists $options{'version'}) {
       
   120     $pkg_vers = $options{'version'}->[0];
       
   121   }
       
   122 
   118   push @manifest_header, join('', 'set name=pkg.fmri value=pkg:/',
   123   push @manifest_header, join('', 'set name=pkg.fmri value=pkg:/',
   119 			      $pkg_name, '@$(PKGVERS)');
   124 			      $pkg_name, '@', $pkg_vers);
   120 
   125 
   121   push @manifest_header, 'set name=pkg.description ' .
   126   push @manifest_header, 'set name=pkg.description ' .
   122     'value="XXX: Please provide a descriptive paragraph for the package."';
   127     'value="XXX: Please provide a descriptive paragraph for the package."';
   123 
   128 
   124   my $pkg_summary = '';
   129   my $pkg_summary = '';