#! /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 < 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 Homebrew Filter hamachi-mp r$rev_new Homebrew Filter / Sorter Dieses HB-App dient zur Sortierung und Kategorisierung Ihrer Homebrews EOF #erstelle meta.xml hbf installer hbc_install=$(awk '-F"' '$1 ~ /hbc_install/ {print $2}' Makefile) cat < "$hbc_install"/meta.xml Homebrew Filter Installer hamachi-mp r$rev_new Installer Installiert den Hombrew Filter EOF }