#!/bin/sh SRC=${HOME}/scm/git.fedorahosted.org/anaconda DST=${HOME}/fedorapeople/public_html/anaconda/iface/pro-NetworkManager if [ ! -d "${SRC}" ]; then echo "anaconda source tree not found in the usual place." >&2 exit 1 fi if [ ! -d "${DST}" ]; then echo "No local tree for dcantrel.fedorapeople.org found." >&2 exit 1 fi cd ${SRC} branch="$(git-branch | grep "^*" | cut -d ' ' -f 2)" if [ ! "${branch}" = "iface" ]; then echo "Not on iface branch, exiting." >&2 exit 1 fi rm -f ${DST}/anaconda-*.patch VER="$(grep Version: anaconda.spec | cut -d ' ' -f 2)" git-diff -p --stat origin > ${DST}/anaconda-${VER}-NetworkManager.patch cp -p ${SRC}/isys/iface.h ${DST}/iface.h exit 0