File: deb.sh

package info (click to toggle)
distcc 3.4%2Breally3.4-13
  • links: PTS
  • area: main
  • in suites: sid
  • size: 4,740 kB
  • sloc: ansic: 27,888; python: 6,460; sh: 4,330; makefile: 912; perl: 68
file content (23 lines) | stat: -rwxr-xr-x 506 bytes parent folder | download | duplicates (9)
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