22635b7893
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2659 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
28 lines
678 B
Bash
Executable File
28 lines
678 B
Bash
Executable File
#!/bin/bash
|
|
# Accepts directories to build packages from on the commandline, but defaults
|
|
# to building: perl-xCAT and xCAT-client
|
|
|
|
major=`cat Version`
|
|
lintian="" # TODO: lintian fails currently
|
|
#lintian="--svn-lintian"
|
|
|
|
if [ "$1" = "-s" ]; then
|
|
shift
|
|
snap=true
|
|
date="$( date +'%F' )"
|
|
version="$major-snapshot-$( date +'%Y%m%d' )"
|
|
fi
|
|
|
|
packages="${@:-perl-xCAT xCAT-client}"
|
|
|
|
for pkg in $packages; do
|
|
mkdir -p debs/$pkg
|
|
echo "*** Building Debian package for $pkg."
|
|
cd $pkg
|
|
if $snap; then
|
|
debchange --distribution unstable --newversion $version "snapshot of $pkg from $date"
|
|
fi
|
|
svn-buildpackage --svn-ignore $lintian --svn-move-to=../debs/$pkg
|
|
cd -
|
|
done
|