diff --git a/Makefile b/Makefile index 3d05c3e..67458d9 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/mod/readme.txt b/mod/readme.md similarity index 87% rename from mod/readme.txt rename to mod/readme.md index 737f751..e049507 100644 --- a/mod/readme.txt +++ b/mod/readme.md @@ -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. diff --git a/readme.md b/readme.md new file mode 120000 index 0000000..226ead3 --- /dev/null +++ b/readme.md @@ -0,0 +1 @@ +mod/readme.md \ No newline at end of file diff --git a/readme.txt b/readme.txt deleted file mode 120000 index c97d28f..0000000 --- a/readme.txt +++ /dev/null @@ -1 +0,0 @@ -mod/readme.txt \ No newline at end of file