Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ __pycache__
libwyag.py
src
wyag
wyag.bat
wyag.zip
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
8 changes: 8 additions & 0 deletions write-yourself-a-git.org
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down