mhonarc-commits
[Top] [All Lists]

CVS: devtools/bin release,1.24,1.25

2005-08-30 20:05:08
Update of devtools/bin
Modified Files:
	release 
Log Message:
+ Added -platform option to explicitly specify the platform name
  if -arch is specified.  The default platform name also changed
  to reflect the platform more accurately.


======================================================================
FILE: devtools/bin/release
<http://www.mhonarc.org/cgi-bin/viewcvs.cgi/*checkout*/devtools/bin/release?rev=1.25>

<http://www.mhonarc.org/cgi-bin/viewcvs.cgi/devtools/bin/release.diff?r1=1.24&r2=1.25&diff_format=h>
--- release	16 Jul 2005 21:58:48 -0000	1.24
+++ release	31 Aug 2005 03:04:55 -0000	1.25
@@ -79,4 +79,5 @@
     'notlatest',        # Not latest release, so do not update latest link
     'noversion-check',  # Bypass version check
+    'platform=s',       # Platform name
     'project=s',        # Project name
     'umask=i',          # Umask for creating files
@@ -195,7 +196,15 @@
 
   if ($arch) {
-    $platform         = lc `uname -s -p`;
-    $platform         =~ s/\s+$//g;
-    $platform         =~ s/\s/-/g;
+    $platform         = $opt{'platform'};
+    if (!defined($platform)) {
+      $platform_s     = lc `uname -s`;
+      $platform_s     =~ s/\s+//g;
+      $platform_m     = lc `uname -m`;
+      $platform_m     =~ s/\s+//g;
+      $platform_p     = lc `uname -p`;
+      $platform_p     =~ s/\s+//g;
+      $platform       = join('-', $platform_s, $platform_m, $platform_p);
+    }
+
     $buildir_parent   = $buildir;
     $buildir_basename = $platform;
@@ -713,5 +722,5 @@
 
 Tar-gzipping of the built project, unless the project itself creates
-its own distribution bundles (see L<NOTES|NOTES>).
+its own distribution bundles (see L<NOTES|"NOTES">).
 
 =item *
@@ -850,12 +859,18 @@
 released project's root directory will be used.
 
-=item C<-noversion-check>
+=item C<-platform> I<name>
 
-Do not validate the version number.  This is useful if the project
-does not following the normal versioning format.
+Platform name to use if C<-arch> is specified.  If not specified,
+then the values returned from the command, C<uname -s -m -p>, are
+used.
 
 =item C<-project> I<name>
 
 Name of project to release.  This is a required option.
+
+=item C<-noversion-check>
+
+Do not validate the version number.  This is useful if the project
+does not following the normal versioning format.
 
 =item C<-notest>


---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-COMMITS