瀏覽代碼

Automatically generate LATEST_VERSION (Closes #16)

Philipp Hagemeister 14 年之前
父節點
當前提交
b576abb457
共有 2 個文件被更改,包括 5 次插入2 次删除
  1. 1 0
      LATEST_VERSION
  2. 4 2
      Makefile

+ 1 - 0
LATEST_VERSION

@@ -0,0 +1 @@
+2011.09.13

+ 4 - 2
Makefile

@@ -1,7 +1,9 @@
 default: update
 default: update
 
 
-update: update-readme
+update: update-readme update-latest
 
 
+update-latest:
+	./youtube-dl --version > LATEST_VERSION
 
 
 update-readme:
 update-readme:
 	@options=$$(COLUMNS=80 ./youtube-dl --help | sed -e '1,/.*General Options.*/ d' -e 's/^\W\{2\}\(\w\)/### \1/') && \
 	@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