~ubuntu-branches/ubuntu/maverick/linux-backports-modules-2.6.32/maverick

« back to all changes in this revision

Viewing changes to updates/alsa-driver/utils/buildrpm.in

  • Committer: Bazaar Package Importer
  • Author(s): Andy Whitcroft, Andy Whitcroft
  • Date: 2010-02-04 23:15:51 UTC
  • Revision ID: james.westby@ubuntu.com-20100204231551-vjz5pkvxclukjxm1
Tags: 2.6.32-12.1
[ Andy Whitcroft ]

* initial LBM for lucid
* drop generated files
* printchanges -- rebase tree does not have stable tags use changelog
* printenv -- add revisions to printenv output
* formally rename compat-wireless to linux-backports-modules-wireless
* Update to compat-wireless-2.6.33-rc5
* update nouveau to mainline 2.6.33-rc4
* add new LBM package for nouveau
* nouveau -- fix major numbers and proc entry names
* fix up firmware installs for -wireless
* clean up UPDATE-NOVEAU
* update Nouveau to v2.6.33-rc6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
kversion=@kversion@.@kpatchlevel@.@ksublevel@@kextraversion@
 
4
source=.
 
5
version=`cat $source/../version`
 
6
package=$source/../../alsa-driver-$version.tar.bz2
 
7
xpackages=/usr/src/redhat
 
8
test -d /usr/src/packages && xpackages=/usr/src/packages
 
9
xbuildrpm=rpm
 
10
rpmbuild --usage 2> /dev/null > /dev/null && xbuildrpm=rpmbuild
 
11
 
 
12
if [ -z "$TARGET_KERNEL" ]; then
 
13
  export TARGET_KERNEL="$kversion"
 
14
fi
 
15
 
 
16
make -C .. pack
 
17
 
 
18
if [ ! -r $package ]; then
 
19
  echo "Error: wrong package: $package"
 
20
  exit 1
 
21
fi
 
22
 
 
23
cp -fv $package $xpackages/SOURCES
 
24
 
 
25
if [ ! -r $source/buildrpm ]; then
 
26
  echo "Error: invalid directory: $source"
 
27
  exit 1
 
28
fi
 
29
 
 
30
if [ ! -d $xpackages ]; then
 
31
  echo "Error: $xpackages directory not found"
 
32
  exit 1
 
33
fi
 
34
 
 
35
if [ ! -r $source/alsa-driver.spec ]; then
 
36
  cd $source/..
 
37
  ./configure
 
38
  cd utils
 
39
fi
 
40
 
 
41
cp -fv $source/alsa-driver.spec $xpackages/SPECS
 
42
cd $xpackages/SPECS
 
43
$xbuildrpm -ba alsa-driver.spec
 
44
cd $xpackages