WiiUPluginSystem/loader/gitrev.sh
Maschell d6ee498a16 [loader] Added minimal loader project
Added an empty project for the loader. This just logs a short string over udp.
2018-02-03 17:03:03 +01:00

30 lines
731 B
Bash

#! /bin/bash
#
rev_new=$(git rev-parse --short=7 HEAD)
version=$(cat ./src/version.h 2>/dev/null | cut -d '"' -f2)
rev_date=`date -u +%Y%m%d%H%M%S`
cat <<EOF > ./meta/meta.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<app version="1">
<name>Wii U Plugin Loader</name>
<coder>Maschell</coder>
<url>https://github.com/Maschell/WiiUPluginSystem</url>
<version>$version-nightly-$rev_new</version>
<release_date>$rev_date</release_date>
<short_description>Plugin loader for the Wii U</short_description>
<long_description></long_description>
<category>tool</category>
</app>
EOF
cat <<EOF > ./src/version.h
#define APP_VERSION "$version-nightly-$rev_new"
EOF
echo $version-nightly-$rev_new