From ce3332fdf88f40c64d6b3f0d43a686766f81d812 Mon Sep 17 00:00:00 2001 From: John Coyle Date: Tue, 20 Dec 2016 20:21:57 -0500 Subject: [PATCH] make-dist: add alpine support Signed-off-by: John Coyle --- make-dist | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/make-dist b/make-dist index 021e9e381b9..7bc40f115ab 100755 --- a/make-dist +++ b/make-dist @@ -49,12 +49,15 @@ else rpm_release=0 fi -cat ceph.spec.in | \ - sed "s/@VERSION@/$rpm_version/g" | \ - sed "s/@RPM_RELEASE@/$rpm_release/g" | - sed "s/@TARBALL_BASENAME@/ceph-$version/g" > ceph.spec + +for spec in ceph.spec.in alpine/APKBUILD.in; do + cat $spec | + sed "s/@VERSION@/$rpm_version/g" | + sed "s/@RPM_RELEASE@/$rpm_release/g" | + sed "s/@TARBALL_BASENAME@/ceph-$version/g" > `echo $spec | sed 's/.in$//'` +done ln -s . $outfile -tar cvf $outfile.version.tar $outfile/src/.git_version $outfile/ceph.spec +tar cvf $outfile.version.tar $outfile/src/.git_version $outfile/ceph.spec $outfile/alpine/APKBUILD tar --concatenate -f $outfile.both.tar $outfile.version.tar tar --concatenate -f $outfile.both.tar $outfile.tar mv $outfile.both.tar $outfile.tar