diff --git a/.gitignore b/.gitignore index 0e03663..16f0057 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ __pycache__ libwyag.py src wyag +wyag.bat wyag.zip diff --git a/Makefile b/Makefile index 25846e4..e3e58ba 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ all: article program article: write-yourself-a-git.html -program: wyag libwyag.py +program: wyag wyag.bat libwyag.py push: .last_push .PHONY: all article clean program push test @@ -24,11 +24,11 @@ write-yourself-a-git.pdf: write-yourself-a-git.org wyag libwyag.py --eval "(setq org-export-with-broken-links t)" \ -f org-latex-export-to-pdf -wyag libwyag.py: write-yourself-a-git.org +wyag wyag.bat libwyag.py: write-yourself-a-git.org emacs --batch write-yourself-a-git.org -f org-babel-tangle wyag.zip: wyag libwyag.py LICENSE - zip -r wyag.zip wyag libwyag.py LICENSE + zip -r wyag.zip wyag wyag.bat libwyag.py LICENSE clean: rm -f wyag libwyag.py write-yourself-a-git.html .last_push wyag.zip diff --git a/write-yourself-a-git.org b/write-yourself-a-git.org index bd53092..6283f54 100644 --- a/write-yourself-a-git.org +++ b/write-yourself-a-git.org @@ -194,6 +194,14 @@ Then make it executable: You're done! +For Windows users, you can additionally make a bat file to let you +run the command from the command line without having to type the file +extension: + +#+BEGIN_SRC bat :tangle wyag.bat + python wyag %* +#+END_SRC + # This is a noweb template to include in all three source files. #+NAME: file_header #+BEGIN_SRC shell :exports none