[css-web] ruler: Updated instructions



commit b3ecdf84dee10af83ad1cbb50134fe76b2b9b973
Author: Tobias Mueller <muelli cryptobitch de>
Date:   Thu Nov 28 21:14:12 2013 +0100

    ruler: Updated instructions
    
    update-ruler is not used.

 friends/README             |   10 --
 friends/ruler/Makefile     |   25 +---
 friends/ruler/README       |    1 +
 friends/ruler/update-ruler |  265 --------------------------------------------
 4 files changed, 8 insertions(+), 293 deletions(-)
---
diff --git a/friends/ruler/Makefile b/friends/ruler/Makefile
index 24f0b48..270f8e2 100644
--- a/friends/ruler/Makefile
+++ b/friends/ruler/Makefile
@@ -1,17 +1,13 @@
-SUBDIRS =
+# You may adapt this value if the amount of money you want to raise differs
+FOG_GOAL = 20000
 
-urlpath = friends/ruler
 
-page_DATA = \
-    ruler-bg.jpg \
-    ruler-done-bg.png \
-    ruler.js \
-    a11y-ruler.js \
-    ruler-privacy.js \
-    lock.png
+ruler-privacy.js: ruler-privacy.js.template ruler-privacy-amount.txt ruler-privacy-remain.txt 
ruler-privacy-percent.txt
+       sed -e "s/{{{FOG_AMOUNT}}}/$$(tr -d '\n' <ruler-privacy-amount.txt)/g" \
+           -e "s/{{{FOG_PERCENT}}}/$$(tr -d '\n' <ruler-privacy-percent.txt)/g" \
+           -e "s/{{{FOG_REMAIN}}}/$$(tr -d '\n' <ruler-privacy-remain.txt)/g" \
+           $<   >   $@
 
-# You may adapt this value if the amount of money you want to raise differs
-FOG_GOAL = 20000
 # We expect ruler-privacy-amount.txt to contain the amount of money that has
 # so far been raised.
 ruler-privacy-percent.txt: ruler-privacy-amount.txt
@@ -20,10 +16,3 @@ ruler-privacy-remain.txt: ruler-privacy-amount.txt
        awk '{t=$(FOG_GOAL)-$$0; printf "%d", t}' <  $<  > $@
        
        
-ruler-privacy.js: ruler-privacy.js.template ruler-privacy-amount.txt ruler-privacy-remain.txt 
ruler-privacy-percent.txt
-       sed -e "s/{{{FOG_AMOUNT}}}/$$(tr -d '\n' <ruler-privacy-amount.txt)/g" \
-           -e "s/{{{FOG_PERCENT}}}/$$(tr -d '\n' <ruler-privacy-percent.txt)/g" \
-           -e "s/{{{FOG_REMAIN}}}/$$(tr -d '\n' <ruler-privacy-remain.txt)/g" \
-           $<   >   $@
-       
-EXTRA_DIST=$(page_DATA)
diff --git a/friends/ruler/README b/friends/ruler/README
new file mode 100644
index 0000000..e967727
--- /dev/null
+++ b/friends/ruler/README
@@ -0,0 +1 @@
+Please run make before commiting to update the ruler.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]