Codebase list conky-manager / f40d182d-a386-4eca-9642-72e1b03554cd/main build-source.sh
f40d182d-a386-4eca-9642-72e1b03554cd/main

Tree @f40d182d-a386-4eca-9642-72e1b03554cd/main (Download .tar.gz)

build-source.sh @f40d182d-a386-4eca-9642-72e1b03554cd/mainraw · history · blame

#!/bin/bash

backup=`pwd`
DIR="$( cd "$( dirname "$0" )" && pwd )"
cd "$DIR"

#check for errors
if [ $? -ne 0 ]; then
	cd "$backup"
	echo "Failed"
	exit 1
fi

rm -rf ../builds

bzr builddeb --source --native --build-dir ../builds/temp --result-dir ../builds

#check for errors
if [ $? -ne 0 ]; then
	cd "$backup"
	echo "Failed"
	exit 1
fi

ls -l ../builds

cd "$backup"