[Slashdotjp-dev 1431] [962] Add regen-all command to re-generate all story shtml files

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 1月 20日 (火) 19:25:38 JST


Revision: 962
          http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=962
Author:   tach
Date:     2009-01-20 19:25:38 +0900 (Tue, 20 Jan 2009)

Log Message:
-----------
Add regen-all command to re-generate all story shtml files

Modified Paths:
--------------
    slashjp/trunk/debian/changelog

Added Paths:
-----------
    slashjp/trunk/bin/regen-all


-------------- next part --------------
Added: slashjp/trunk/bin/regen-all
===================================================================
--- slashjp/trunk/bin/regen-all	                        (rev 0)
+++ slashjp/trunk/bin/regen-all	2009-01-20 10:25:38 UTC (rev 962)
@@ -0,0 +1,19 @@
+#!/usr/bin/perl
+#
+# (slash-)regen-all - re-generate all story shtml files
+#
+
+use Slash;
+use Slash::Utility;
+use Slash::DB;
+
+my %opts;
+$opts{'u'} ||= 'slash';
+
+createEnvironment($opts{'u'});
+
+my $slashdb = getCurrentDB();
+$slashdb->sqlDo("INSERT IGNORE INTO story_dirty
+                 SELECT stoid FROM stories WHERE in_trash = 'no'
+                 AND stoid NOT IN (SELECT DISTINCT stoid FROM story_param \
+                 WHERE name = 'neverdisplay' AND value = 1)");


Property changes on: slashjp/trunk/bin/regen-all
___________________________________________________________________
Name: svn:executable
   + *

Modified: slashjp/trunk/debian/changelog
===================================================================
--- slashjp/trunk/debian/changelog	2009-01-20 08:05:39 UTC (rev 961)
+++ slashjp/trunk/debian/changelog	2009-01-20 10:25:38 UTC (rev 962)
@@ -1,3 +1,9 @@
+slash (2.5.0.233-4) unstable; urgency=low
+
+  * Add regen-all command to re-generate all story shtml files
+
+ -- Taku YASUI <tach****@osdn*****>  Tue, 20 Jan 2009 10:24:44 +0000
+
 slash (2.5.0.233-3) unstable; urgency=low
 
   * Improve calculation method giving moderation points for slashdot.jp


Slashdotjp-dev メーリングリストの案内
Back to archive index