vmware-nsx/tools/build_debs.sh
Brad Hall 9bab0960b6 Second round of packaging changes
This change condenses the directory structure to something more similar to
what we had before while producing similar packages.

It also introduces version.py which allows us to get the version from git tags
(or a fallback version if not available).

Fixes lp bug 889336
Fixes lp bug 888795

Change-Id: I86136bd9dbabb5eb1f8366ed665ed9b54f695124
2011-11-28 10:33:52 -08:00

23 lines
479 B
Bash
Executable File

#!/bin/bash
ALIEN=`which alien`
if [ $? -ne 0 ]; then
echo "You must have alien installed to build debian packages"
exit 1
fi
FAKEROOT=""
if [ `id -u` != 0 ]; then
FAKEROOT=`which fakeroot`
if [ $? -ne 0 ]; then
echo "You must be root or have fakeroot installed to build debian packages"
exit 1
fi
fi
ls dist/*.rpm >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo "You must build rpms before building debian packages"
exit 1
fi
$FAKEROOT $ALIEN -c -v -d dist/*.noarch.rpm