Commits

Marcin Kasperski  committed ff1e2c8

Próba dodania rebuild

  • Participants
  • Parent commits 9c374db
  • Tags 1.12.1

Comments (0)

Files changed (2)

File build_extension.pl

 #################################################################
 
 my $what = shift @ARGV || '';
-unless ($what =~ /^(major|minor|patch|devel)$/) {
-    print "Usage:\n$0 [major|minor|patch|devel]\n";
+unless ($what =~ /^(major|minor|patch|devel|rebuild)$/) {
+    print "Usage:\n$0 [major|minor|patch|devel|rebuild]\n";
     exit(1);
 }
 
     elsif ($what eq 'patch') {
         $version = join('.', $newest[0], $newest[1], $newest[2]+1);
     }
+    elsif ($what eq 'rebuild') {
+        $version = join('.', $newest[0], $newest[1], $newest[2]);
+    }
     else {
         die "Ups\n";
     }
 
-    print "Creating version: $version\n";
+    print "Creating version: $version"
+      . ($what eq 'rebuild' ? " (rebuild - don't do it if already published)": "")
+      . "\n";
     my $x;
     do {
         {
         tie @array, 'Tie::File', $filename
           or die "Can't read $filename: $!\n";
         foreach (@array) {
-            s/(<em:version>|<version>| - version |\&version; |em:version=")\d+\.\d+\.\d+/$1$version/;
+            s/(<em:version>|<version>| - version |\&version; |em:version=")\d+\.\d+(\.\d+)?/$1$version/;
         }
     }
 

File smtuning/update.rdf

       <RDF:Seq>
         <RDF:li>
           <RDF:Description>
-            <em:version>1.12.0</em:version>
+            <em:version>1.12.1</em:version>
             <em:targetApplication>
               <RDF:Description>
                 <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
                 <em:minVersion>1.5</em:minVersion>
                 <em:maxVersion>3.0.0.*</em:maxVersion>
-                <em:updateLink>http://mekk.waw.pl/download/smtuning/smtuning-1.12.0.xpi</em:updateLink>
+                <em:updateLink>http://mekk.waw.pl/download/smtuning/smtuning-1.12.1.xpi</em:updateLink>
                 <em:updateInfoURL>http://mekk.waw.pl/mk/eng/chess/art/smtuning/history</em:updateInfoURL>
-                <em:updateHash>sha1:165470d3e3ebce9dc4b3de55e9dd95998274b3e8</em:updateHash>
+                <em:updateHash>sha1:da998f0e25f280e04bfb5a204d78769dd62adc48</em:updateHash>
               </RDF:Description>
             </em:targetApplication>
           </RDF:Description>