Automatically generate LATEST_VERSION (Closes #16)
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 13 Sep 2011 20:29:50 +0000 (22:29 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 13 Sep 2011 20:29:50 +0000 (22:29 +0200)
LATEST_VERSION [new file with mode: 0644]
Makefile

diff --git a/LATEST_VERSION b/LATEST_VERSION
new file mode 100644 (file)
index 0000000..afa0b77
--- /dev/null
@@ -0,0 +1 @@
+2011.09.13
index 0039f90..e725dc7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,9 @@
 default: update
 
-update: update-readme
+update: update-readme update-latest
 
+update-latest:
+       ./youtube-dl --version > LATEST_VERSION
 
 update-readme:
        @options=$$(COLUMNS=80 ./youtube-dl --help | sed -e '1,/.*General Options.*/ d' -e 's/^\W\{2\}\(\w\)/### \1/') && \
@@ -15,4 +17,4 @@ update-readme:
 
 
 
-.PHONY: default update update-readme
+.PHONY: default update update-latest update-readme