diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-02-18 07:46:12 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-02-18 07:46:12 +0300 |
commit | c4d9e3a9248d199fe63b078bdc5d2557089a9599 (patch) | |
tree | 7ed8eaeaa69c013497c7baefde7965637080d655 | |
parent | 3a3436e07499a059b78ef6cfb0ae17829e6b5220 (diff) |
added script for *nix
-rwxr-xr-x | makemod.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/makemod.sh b/makemod.sh new file mode 100755 index 0000000..22724ba --- /dev/null +++ b/makemod.sh @@ -0,0 +1,11 @@ +#!/bin/sh +moddir=retroarch.hmod +modname=retroarch.hmod +outdir=output +[ -z "$1" ] || outdir=$1 +cd "$moddir" +rm -f "$modname" +tar -czvf "$modname" * +mkdir -p "../$outdir" +rm -f "../$outdir/$modname" +mv "$modname" "../$outdir/$modname" |