mirror of
https://gitlab.com/Nanolx/homebrewfilter.git
synced 2024-12-29 02:41:48 +01:00
add svnrev stuff
This commit is contained in:
parent
8465cb741e
commit
f0312d66ef
@ -17,7 +17,7 @@
|
||||
#include "Tools/theme.h"
|
||||
#include "Tools/translate.h"
|
||||
#include "Tools/fileop.h"
|
||||
#include "../../svnrev/svnrev.h"
|
||||
#include "../svnrev/svnrev.h"
|
||||
|
||||
#define HW_REG_BASE 0xcd800000
|
||||
#define HW_ARMIRQMASK (HW_REG_BASE + 0x03c)
|
||||
|
6
svnrev/svnrev.c
Normal file
6
svnrev/svnrev.c
Normal file
@ -0,0 +1,6 @@
|
||||
#define SVN_REV 36
|
||||
|
||||
int SvnRev()
|
||||
{
|
||||
return SVN_REV;
|
||||
}
|
14
svnrev/svnrev.h
Normal file
14
svnrev/svnrev.h
Normal file
@ -0,0 +1,14 @@
|
||||
#ifndef SVNREV_H
|
||||
#define SVNREV_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int SvnRev();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* SVNREV_H */
|
50
svnrev/svnrev.sh
Normal file
50
svnrev/svnrev.sh
Normal file
@ -0,0 +1,50 @@
|
||||
#! /bin/bash
|
||||
#
|
||||
|
||||
#alte rev auslesen
|
||||
rev_old=$(awk -FSVN_REV ' $1 ~ /define/ {gsub(" ","",$2); print $2}' svnrev/svnrev.c)
|
||||
|
||||
#rev auslesen, die kompiliert wird
|
||||
rev_new=$(awk -F= '$1 ~ /rev/ {gsub(" ","",$2); print $2}' Makefile)
|
||||
|
||||
if [ "$rev_new" != "$rev_old" ]; then
|
||||
#rev nummer speichern
|
||||
cat <<EOF > svnrev/svnrev.c
|
||||
#define SVN_REV $rev_new
|
||||
|
||||
int SvnRev()
|
||||
{
|
||||
return SVN_REV;
|
||||
}
|
||||
EOF
|
||||
|
||||
fi
|
||||
{
|
||||
#erstelle meta.xml hbf
|
||||
hbc_boot=$(awk '-F"' '$1 ~ /hbc_boot/ {print $2}' Makefile)
|
||||
cat <<EOF > "$hbc_boot"/meta.xml
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<app version="1">
|
||||
<name> Homebrew Filter</name>
|
||||
<coder>hamachi-mp</coder>
|
||||
<version>r$rev_new</version>
|
||||
<no_ios_reload/>
|
||||
<short_description>Homebrew Filter / Sorter</short_description>
|
||||
<long_description>Dieses HB-App dient zur Sortierung und Kategorisierung Ihrer Homebrews</long_description>
|
||||
</app>
|
||||
EOF
|
||||
|
||||
#erstelle meta.xml hbf installer
|
||||
hbc_install=$(awk '-F"' '$1 ~ /hbc_install/ {print $2}' Makefile)
|
||||
cat <<EOF > "$hbc_install"/meta.xml
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<app version="1">
|
||||
<name> Homebrew Filter Installer</name>
|
||||
<coder>hamachi-mp</coder>
|
||||
<version>r$rev_new</version>
|
||||
<no_ios_reload/>
|
||||
<short_description>Installer</short_description>
|
||||
<long_description>Installiert den Hombrew Filter</long_description>
|
||||
</app>
|
||||
EOF
|
||||
}
|
Loading…
Reference in New Issue
Block a user