Skip to content

Commit

Permalink
Update Makefile to add front matter to readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DanTheMan827 committed Feb 17, 2018
1 parent 989e19e commit 0352cb4
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 11 deletions.
16 changes: 14 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,20 @@ GIT_COMMIT := $(shell echo "`git rev-parse --short HEAD``git diff-index --quiet
all: out/$(MOD_NAME)-$(GIT_COMMIT).hmod

out/$(MOD_NAME)-$(GIT_COMMIT).hmod:
mkdir -p out/
cd mod/; tar -czvf "../$@" *
mkdir -p out/ temp/
mkdir -p out/ temp/
rsync -a mod/ temp/ --links --delete
echo "---" > temp/readme.md
echo "Name: `head -n 1 mod/readme.md | cut -c 3-`" >> temp/readme.md
echo "Creator: DanTheMan827" >> temp/readme.md
echo "Category: UI" >> temp/readme.md
echo "Version: `git describe --tags`" >> temp/readme.md
echo "Packed on: `date`" >> temp/readme.md
echo "Git commit: $(GIT_COMMIT)" >> temp/readme.md
echo "---" >> temp/readme.md
sed 1d mod/readme.md >> temp/readme.md
cd temp/; tar -czvf "../$@" *
rm -r temp/
touch "$@"

clean:
Expand Down
16 changes: 8 additions & 8 deletions mod/readme.txt → mod/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
=== Font Remount ===
# Font Remount

This module will search /media/hakchi/fonts and /var/lib/hakchi/fonts for font files with the following names
This module will search **/media/hakchi/fonts** and **/var/lib/hakchi/fonts** for font files with the following names

- title.fnt
- copyright.fnt
Expand All @@ -13,17 +13,17 @@ It comes with an extended title.fnt by default and will use that if no other is

A description of the font files is as follows:

title.fnt
**title.fnt**
This is the game title font

copyright.fnt
**copyright.fnt**
This is used on the legal screen.

small.fnt
**small.fnt**
This is used for the button legend and in tooltips.

medium.fnt
**medium.fnt**
This is used all over the UI.

large.fnt
This is used for menu headings.
**large.fnt**
This is used for menu headings.
1 change: 1 addition & 0 deletions readme.md
1 change: 0 additions & 1 deletion readme.txt

This file was deleted.

0 comments on commit 0352cb4

Please sign in to comment.