Created
August 21, 2015 05:59
-
-
Save zhouyuan/f4c1c671c1659ece04e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/make-debs.sh b/make-debs.sh | |
index b8d3e46..529af65 100755 | |
--- a/make-debs.sh | |
+++ b/make-debs.sh | |
@@ -58,8 +58,8 @@ tar -C $releasedir -zxf $releasedir/ceph_$vers.orig.tar.gz | |
# | |
cp -a debian $releasedir/ceph-$vers/debian | |
cd $releasedir | |
-perl -ni -e 'print if(!(/^Package: .*-dbg$/../^$/))' ceph-$vers/debian/control | |
-perl -pi -e 's/--dbg-package.*//' ceph-$vers/debian/rules | |
+#perl -ni -e 'print if(!(/^Package: .*-dbg$/../^$/))' ceph-$vers/debian/control | |
+#perl -pi -e 's/--dbg-package.*//' ceph-$vers/debian/rules | |
# | |
# always set the debian version to 1 which is ok because the debian | |
# directory is included in the sources and the upstream version will | |
@@ -80,11 +80,7 @@ fi | |
# b) do not sign the packages | |
# c) use half of the available processors | |
# | |
-: ${NPROC:=$(($(nproc) / 2))} | |
-if test $NPROC -gt 1 ; then | |
- j=-j${NPROC} | |
-fi | |
-PATH=/usr/lib/ccache:$PATH dpkg-buildpackage $j -uc -us | |
+PATH=/usr/lib/ccache:$PATH dpkg-buildpackage -j120 -uc -us | |
cd ../.. | |
mkdir -p $codename/conf | |
cat > $codename/conf/distributions <<EOF | |
@@ -94,6 +90,7 @@ Components: main | |
Architectures: i386 amd64 source | |
EOF | |
ln -s $codename/conf conf | |
+echo $dvers > version | |
reprepro --basedir $(pwd) include $codename WORKDIR/*.changes | |
# | |
# teuthology needs the version in the version file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment