Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add monomac blog

  • Loading branch information...
commit 43339983bbd794dd653042da777d662bf063594f 1 parent 1fb1136
@migueldeicaza migueldeicaza authored
Showing with 28 additions and 85 deletions.
  1. +1 −1  config.xml
  2. +21 −5 makefile
  3. +6 −79 twentyten/blog-template
View
2  config.xml
@@ -6,7 +6,7 @@ BlogFileName="index.html"
BlogWebDirectory="http://tirania.org/blog/"
BlogImageBasedir="http://primates.ximian.com/~miguel"
Copyright="Miguel de Icaza"
-Description="Miguel de Icaza's web log"
+Description="Personal blog of Miguel de Icaza"
ManagingEditor="miguel@gnome.org"
Title="Miguel de Icaza"
RSSFileName="miguel"
View
26 makefile
@@ -1,5 +1,7 @@
#REMOTE_DIRECTORY=miguel@www.tirania.org:tirania/blog
-REMOTE_DIRECTORY=u59770950@s338502803.onlinehome.us:web/tirania.org/blog
+BASE_REMOTE=u59770950@s338502803.onlinehome.us:web/tirania.org/
+REMOTE_BLOG=$(BASE_REMOTE)blog
+REMOTE_MONOMAC=$(BASE_REMOTE)monomac
ASSEMBLIES= -r:RSS.NET.dll \
-r:System.Web
@@ -10,9 +12,19 @@ lb.exe: lb.cs config.cs
b: lb.exe
mono --debug lb.exe -c config.xml -p output
-c: lb.exe
+c: lb.exe twentyten/blog-template.standard
-mkdir new; cp twentyten/* new
- mono --debug lb.exe -c config.xml -p new -b twentyten/blog-template -e twentyten/entry-template
+ mono --debug lb.exe -c config.xml -p new -b twentyten/blog-template.standard -e twentyten/entry-template
+
+m: lb.exe twentyten/blog-template.monomac
+ -mkdir monomac; cp twentyten/* monomac
+ mono --debug lb.exe -c monomac.xml -p monomac -b twentyten/blog-template.monomac -e twentyten/entry-template
+
+twentyten/blog-template.standard: twentyten/blog-template twentyten/widgets.standard
+ sed -e '/@WIDGETS@/r twentyten/widgets.standard' -e 'x;$G' -e 's/@WIDGETS@//' twentyten/blog-template > $@
+
+twentyten/blog-template.monomac: twentyten/blog-template twentyten/widgets.monomac makefile
+ sed -e '/@WIDGETS@/r twentyten/widgets.monomac' -e 'x;$G' -e 's/@WIDGETS@//' -e 's,@BLOGWEBDIR@/pic2.jpg,https://monomac.wordpress.com/wp-content/themes/pub/twentyten/images/headers/sunset.jpg,' twentyten/blog-template > $@
clean:
rm -fr *.exe output
@@ -21,10 +33,13 @@ push:
echo select pushb or pushc
pushb: b
- make do-push DIR=output
+ make do-push DIR=output REMOTE_DIRECTORY=$(REMOTE_BLOG)
pushc: c
- make do-push DIR=new
+ make do-push DIR=new REMOTE_DIRECTORY=$(REMOTE_BLOG)
+
+pushm: m
+ make do-push DIR=monomac REMOTE_DIRECTORY=$(REMOTE_MONOMAC)
r:
rsync twentyten/* $(REMOTE_DIRECTORY)
@@ -34,6 +49,7 @@ do-push:
chmod 644 $(DIR)/*html output/*rss2
rsync -zu --checksum -pr -v --rsh=ssh texts prettyprint.js log-style.css \
$(DIR)/archive $(DIR)/*.rss2 $(DIR)/index.html $(DIR)/page*.html $(DIR)/all.html \
+ $(DIR)/*.css $(DIR)/*.gif \
$(REMOTE_DIRECTORY)
check-update:
View
85 twentyten/blog-template
@@ -4,7 +4,7 @@
<title>@TITLE@</title>
<link rel='stylesheet' href='@BASEDIR@style.css' type='text/css' />
<link rel='stylesheet' href='@BASEDIR@miguel-style.css' type='text/css' />
- <link rel="alternate" type="application/rss+xml" title="RSS" href="http://tirania.org/blog/miguel.rss2" />
+ <link rel="alternate" type="application/rss+xml" title="RSS" href="@BLOGWEBDIR@@RSSFILENAME@.rss2" />
<script src='@BASEDIR@prettyprint.js' type='text/javascript'></script>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<script type="text/javascript">
@@ -24,10 +24,10 @@
<div id="branding" role="banner">
<h1 id="site-title">
<span>
- <a href="@BLOGWEBDIR@" title="@DESCRIPTION@" rel="home">http://tirania.org</a>
+ <a href="@BLOGWEBDIR@" title="@DESCRIPTION@" rel="home">@BLOGWEBDIR@</a>
</span>
</h1>
- <div id="site-description">Personal blog of Miguel de Icaza</div>
+ <div id="site-description">@DESCRIPTION@</div>
<img src="@BLOGWEBDIR@/pic2.jpg" width="940" height="236" alt="" />
</div><!-- #branding -->
@@ -69,87 +69,14 @@
<li class="widget-container">
<h3 class="widget-title">RSS</h3>
<div>
- <a href="@BLOGWEBDIR@@RSSFILENAME@.rss2"><img src="@BASEDIR@xml.gif" alt="xml.gif" /></a>
- <a href="http://fusion.google.com/add?feedurl=@BLOGWEBDIR@@RSSFILENAME@.rss2">
+ <a href="http://feeds.feedburner.com/MiguelsOsxAndIosBlog"><img src="@BASEDIR@xml.gif" alt="xml.gif" /></a>
+ <a href="http://fusion.google.com/add?feedurl=http://feeds.feedburner.com/MiguelsOsxAndIosBlog">
<img src="http://primates.ximian.com/~miguel/pictures/addgoogle2.gif" alt="addgoogle2.gif" /></a>
</div>
</li>
-
- <li class="widget-container">
- <h3 class="widget-title">My Other Blog</h3>
- <div>
- <p><a href="http://monomac.wordpress.com">MonoMac/MonoTouch blog</a>.
- </div>
- </li>
-
- <li class="widget-container">
- <h3 class="widget-title">Twitter</h3>
- <div>
- <p><a href="http://twitter.com/migueldeicaza">Follow me on twitter</a>.
- <script type="text/javascript" language="javascript" src="http://twittercounter.com/embed/?username=migueldeicaza"></script>
- </div>
- </li>
-
- <li class="widget-container">
- <h3 class="widget-title">Comments</h3>
- <div>Email: <a href="mailto:@EDITOR@">@EDITOR@</a>.
- </div>
- <li class="widget-container">
- <h3 class="widget-title">Search this Blog</h3>
- <!-- Google CSE Search Box Begins -->
- <div><form action="http://google.com/cse" id="searchbox_017740955003523021154:1z0nz3i1mbw">
- <input type="hidden" name="cx" value="017740955003523021154:1z0nz3i1mbw" />
- <input type="text" name="q" size="25" />
- <input type="submit" name="sa" value="Search" />
- </form>
- <script type="text/javascript" src="http://google.com/coop/cse/brand?form=searchbox_017740955003523021154%3A1z0nz3i1mbw">
- </script>
- </div>
- <!-- Google CSE Search Box Ends -->
- </li>
-
- <li class="widget-container">
- <h3 class="widget-title">Recommended Reading</h3>
- <div>
- <a href="http://www.amazon.com/gp/product/0321562992?ie=UTF8&tag=tiraniaorg-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0321562992">
- <img border="0" src="https://images-na.ssl-images-amazon.com/images/I/51uwyv0A0QL._SL160_.jpg"></a>
- <img src="http://www.assoc-amazon.com/e/ir?t=tiraniaorg-20&l=as2&o=1&a=0321562992" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
- <p>
-
- <a href="http://www.amazon.com/gp/product/0123704901?ie=UTF8&tag=tiraniaorg-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0123704901">
- <img border="0"
- src="https://images-na.ssl-images-amazon.com/images/I/517kQTy1i7L._SL160_.jpg"></a>
- <img src="http://www.assoc-amazon.com/e/ir?t=tiraniaorg-20&l=as2&o=1&a=0123704901"
- width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
- </div>
- </li>
+ @WIDGETS@
- <li class="widget-container">
- <h3 class="widget-title">Pictures:</h3>
- <div><a href="http://picasaweb.google.com/miguel.de.icaza/?pli=1">Picasa</a><br/>
- <a href="http://www.flickr.com/photos/migueldeicaza/">Flickr</a>
- </li>
- </ul>
-
- <div class="separator"> </div>
-
- @ARCHIVE_NAVIGATOR@
-
- <p>
- <a href="http://www.go-mono.com"><img src="http://www.go-mono.com/images/mono-contributor-static.gif" alt="mono-contributor-static.gif" /></a>
- </p>
-
- <ul class="xoxo">
- <li class="widget-container">
- <h3 class="widget-title">Fundamental</h3>
- <div><a href="http://www.go-mono.com/monologue">Mono Blogs</a><br>
- <a href="http://www.commondreams.org">CommonDreams</a><br/>
- <a href="http://grurrah.com/">Grurrah - Green Ideas</a><br/>
- </div>
- </li>
- </ul>
-
</div> <!-- container -->
</div> <!-- main -->
Please sign in to comment.
Something went wrong with that request. Please try again.