summaryrefslogtreecommitdiff
path: root/packaging/deb.sh
blob: a38b239396b7354cf479556bc4586141e7463a83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -e

# This takes a package name and version,
# and a list of rpms to convert to .deb files.
# It puts them all under a debian-* directory under the current directory.
#
# Run this from the 'packaging' directory, just under rootdir

PACKAGE="$1";
VERSION="$2";
shift; shift;

# Clean out any old .deb files from a previous build.
rm -f "$PACKAGE"*[-._]"$VERSION".deb

for file in "$@"; do
  fakeroot alien -c -k -v "$file"
done

echo
echo "The Debian package files are located in $PWD:"
ls *.deb