Update Hooke doc building to use the Git repo and external update-copyright.py.
authorW. Trevor King <wking@drexel.edu>
Thu, 16 Feb 2012 23:16:22 +0000 (18:16 -0500)
committerW. Trevor King <wking@drexel.edu>
Thu, 16 Feb 2012 23:16:22 +0000 (18:16 -0500)
posts/Hooke/Makefile

index deaa134a2cf54900578e3fbb137058c5f7886eae..7a88c79e677c8c5978495d11f5c28e70c65fab4e 100644 (file)
@@ -1,4 +1,4 @@
-REPO = http://www.physics.drexel.edu/~wking/code/hg/hooke/
+REPO = git://tremily.us/hooke.git
 PACKAGE = hooke
 
 .PHONY : all checkout clean
@@ -9,16 +9,16 @@ clean :
        rm -rf $(PACKAGE) README.rst html
 
 $(PACKAGE) :
-       hg clone $(REPO) $@
+       git clone $(REPO) $@
 
 checkout : $(PACKAGE)
-       (cd $(PACKAGE) && hg pull && hg update wtk)
+       (cd $(PACKAGE) && git checkout wtk && git pull)
 
 README.rst : checkout
        cp $(PACKAGE:%=%/README) $@
 
 $(PACKAGE:%=%/hooke/version.py) : checkout
-       (cd $(PACKAGE) && ./update_copyright.py)
+       (cd $(PACKAGE) && update-copyright.py)
 
 .PHONY : $(PACKAGE:%=%/doc/build/html)
 $(PACKAGE:%=%/doc/build/html) : $(PACKAGE:%=%/hooke/version.py)