[Pkg-xfce-commits] r6094 - scripts/pbuilder

Yves-Alexis Perez corsac at alioth.debian.org
Thu Oct 6 05:47:29 UTC 2011


Author: corsac
Date: 2011-10-06 05:47:29 +0000 (Thu, 06 Oct 2011)
New Revision: 6094

Modified:
   scripts/pbuilder/pdebuild-sources.sh
Log:
add some notifications ala git-buildpackage


Modified: scripts/pbuilder/pdebuild-sources.sh
===================================================================
--- scripts/pbuilder/pdebuild-sources.sh	2011-10-06 05:46:36 UTC (rev 6093)
+++ scripts/pbuilder/pdebuild-sources.sh	2011-10-06 05:47:29 UTC (rev 6094)
@@ -114,6 +114,7 @@
 	pkg="$1"
 
 	echo "Building $pkg..."
+  [ -x /usr/bin/notify-send ] && notify-send "Building $pkg..."
 	if [ -d "$BUILDDIR/$pkg" ];
 	then
 		cd $BUILDDIR/$pkg
@@ -121,16 +122,21 @@
 		if [ -f $BUILDRESULT/${pkg}_${version}_${ARCH}.changes ] && [ ! "$FORCE" == "1" ]; 
 		then
       echo "$pkg already built, skipping ($BUILDRESULT/${pkg}_${version}_${ARCH}.changes present)"
+      [ -x /usr/bin/notify-send ] && notify-send "$pkg already built"
 		else
       # pass variables to the build
       export pkg version ARCH DISTRIBUTION BRANCH DEBBUILDOPTS BUILDRESULT APTGETOPT
 			[ "$DEBUG" ] || svn-buildpackage --svn-ignore-new \
 				--svn-builder $SCRIPTSDIR/pbuilder/pdebuild.wrapper &&
-			echo "done, changefile at $BUILDRESULT/${pkg}_${version}_${ARCH}.changes"
+      (
+        echo "done, changefile at $BUILDRESULT/${pkg}_${version}_${ARCH}.changes"
+        [ -x /usr/bin/notify-send ] && notify-send "$pkg build successful"
+      ) 
 		fi
 	else
 		echo "'$BUILDDIR/$pkg' is not a directory" > /dev/stderr
 		echo "failed"
+
   fi
 }
 




More information about the Pkg-xfce-commits mailing list