From 5c84ac8a2f8d1d772931b75ce1913bbe581ee6e9 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Sat, 15 Oct 2011 09:20:51 +0200 Subject: [PATCH] svnrev.sh: remove unneded function, create meta.xml.* in PWD --- svnrev/svnrev.c | 2 +- svnrev/svnrev.sh | 36 +++++++++--------------------------- 2 files changed, 10 insertions(+), 28 deletions(-) mode change 100644 => 100755 svnrev/svnrev.sh diff --git a/svnrev/svnrev.c b/svnrev/svnrev.c index 94815bf..ced07f5 100644 --- a/svnrev/svnrev.c +++ b/svnrev/svnrev.c @@ -1,4 +1,4 @@ -#define SVN_REV 36 +#define SVN_REV int SvnRev() { diff --git a/svnrev/svnrev.sh b/svnrev/svnrev.sh old mode 100644 new mode 100755 index 09c07b6..c831bd6 --- a/svnrev/svnrev.sh +++ b/svnrev/svnrev.sh @@ -1,32 +1,15 @@ #! /bin/bash # -#alte rev auslesen -rev_old=$(awk -FSVN_REV ' $1 ~ /define/ {gsub(" ","",$2); print $2}' svnrev/svnrev.c) +# XXX move into mkrelease rule -#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 < 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 < "$hbc_boot"/meta.xml +cat < "$PWD"/meta.xml.boot - Homebrew Filter - hamachi-mp + Homebrew Filter + Christopher Roy Bratusek
+ hamachi-mp
r$rev_new Homebrew Filter / Sorter @@ -35,16 +18,15 @@ cat < "$hbc_boot"/meta.xml EOF #erstelle meta.xml hbf installer -hbc_install=$(awk '-F"' '$1 ~ /hbc_install/ {print $2}' Makefile) -cat < "$hbc_install"/meta.xml +cat < "$PWD"/meta.xml.installer - Homebrew Filter Installer - hamachi-mp + Homebrew Filter Installer + Christopher Roy Bratusek
+ hamachi-mp
r$rev_new Installer Installiert den Hombrew Filter
EOF -} \ No newline at end of file