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 8, 2018
1 parent 4ad041b commit 12aa5c5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,18 @@ 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: mod/usr/share/$(MOD_NAME)/transferring.xz
mkdir -p "out/"
cd "mod/"; tar -czvf "../$@" *
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: USB-Host" >> 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 "$@"

mod/usr/share/$(MOD_NAME)/transferring.xz: bin/decodepng
Expand Down
4 changes: 2 additions & 2 deletions mod/readme.txt → mod/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=== External Retroarch ===
# External Retroarch
This mod will move /etc/libretro to the attached external usb drive at hakchi/libretro, it will then use that location for all retroarch cores instead of the internal nand memory.

=== Uninstall ===
## Uninstall
During uninstall, the libretro directory on the USB drive will replace the one on nand if there is enough available free space.
1 change: 1 addition & 0 deletions readme.md
1 change: 0 additions & 1 deletion readme.txt

This file was deleted.

0 comments on commit 12aa5c5

Please sign in to comment.