[Slashdotjp-dev 933] [452] Makefile:

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 1月 22日 (火) 20:24:24 JST


Revision: 452
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=452
Author:   tach
Date:     2008-01-22 20:24:23 +0900 (Tue, 22 Jan 2008)

Log Message:
-----------
Makefile:
 * append .jp css to original file if exists
 * do not download original css/js by default (use force)
 * change slashcode_list.css condition to append css.jp file

css/slashcode_lite.css.jp:
 * Add to append to original css

Modified Paths:
--------------
    images/Makefile

Added Paths:
-----------
    images/css/slashcode_lite.css.jp


-------------- next part --------------
Modified: images/Makefile
===================================================================
--- images/Makefile	2008-01-22 11:03:12 UTC (rev 451)
+++ images/Makefile	2008-01-22 11:24:23 UTC (rev 452)
@@ -20,6 +20,7 @@
 		wget --no-proxy --no-host-directories --mirror --no-verbose -i -
 	touch images-stamp
 
+css/slashcode_lite.css: %: %.orig %.jp
 $(csses): %: css/%.css
 $(sections): %: css/slashdot_%.css
 $(patsubst %, css/%.css, $(csses)) $(patsubst %,css/slashdot_%.css, $(sections)): %: %.orig
@@ -28,8 +29,9 @@
 		sed -e 's/text-align: right padding: 3px;/text-align: right; padding: 3px;/' | \
 		perl -npe 's/\bfont-family:[^;]+;//' | \
 		perl -npe 's/\bsans-serif\b//' > $@
+	if [ -f $@.jp ]; then cat $@.jp >> $@; fi
 
-css/%.css.orig: FORCE
+css/%.css.orig:
 	wget --no-proxy --no-verbose http://images.slashdot.org/$(patsubst css/%.orig,%, $@) -O $@
 
 $(jses): %: %.js
@@ -38,7 +40,7 @@
 		sed -e 's/ Firehose / アレたま /' | \
 		sed -e 's/sitename="Slashdot";/sitename="スラッシュドット ジャパン";/' > $@
 
-%.js.orig: FORCE
+%.js.orig:
 	wget --no-proxy --no-verbose http://slashdot.org/$(patsubst %.js.orig,%.js, $@) -O $@
 
 force: clean default

Added: images/css/slashcode_lite.css.jp
===================================================================
--- images/css/slashcode_lite.css.jp	2008-01-22 11:03:12 UTC (rev 451)
+++ images/css/slashcode_lite.css.jp	2008-01-22 11:24:23 UTC (rev 452)
@@ -0,0 +1 @@
+/* Override slashcode_lite.css for slashdot.jp */


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