]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
move wheezy hack into build_dsc.sh, where it belongs
authorSage Weil <sage@redhat.com>
Fri, 22 Aug 2014 17:57:50 +0000 (10:57 -0700)
committerSage Weil <sage@redhat.com>
Fri, 22 Aug 2014 20:38:02 +0000 (13:38 -0700)
Signed-off-by: Sage Weil <sage@redhat.com>
build_dsc.sh

index dcab2c4236dccf7793621654c326156039ef719b..e5990a3f883e4fff597be5716b278508f5134c4d 100755 (executable)
@@ -55,8 +55,14 @@ do
        cd ..
     fi
 
-    # hack
-    [ "$dist" = "lenny" ] && sed -i 's/, libgoogle-perftools-dev[^,]*,/,/' ceph-$cephver/debian/control
+    # per-dist hacks
+    if [ "$dist" = "lenny" ]; then
+       sed -i 's/, libgoogle-perftools-dev[^,]*,/,/' ceph-$cephver/debian/control
+    fi
+    if [ "$dist" = "wheezy" ]; then
+       grep -v babeltrace ceph-$cephver/debian/control > ceph-$cephver/debian/control.new
+       mv ceph-$cephver/debian/control.new ceph-$cephver/debian/control
+    fi
 
     dpkg-source -b ceph-$cephver