#!/bin/bash

source /usr/share/slackdev/buildkit.sh

P=

# Determine the package series:
slack_var_pkgseries

T=SlackBuild
#T=build

# Diff the build scripts:
if pwd | fgrep -q "/patches/source/" ; then
   # Are we in /patches?
   diff -u $P.$T.orig $SLACKSOURCE/$P/$P.$T
 else
   # Not in /patches
   diff -u $P.$T.orig $SLACKSOURCE/$PKGSERIES/$P/$P.$T
fi

# for /extra:
#diff -u $P.$T.orig $SLACKSOURCE/../$PKGSERIES/source/$P*/$P.$T

# This makes it easier to copy the new version over our saved
# copy.
[ -z "$R2BRUNNING" ] && echo "Source script: $SLACKSOURCE/$PKGSERIES/$P/$P.$T"

