make-dist: add alpine support

Signed-off-by: John Coyle <dx9err@gmail.com>
This commit is contained in:
John Coyle 2016-12-20 20:21:57 -05:00
parent 9001d7e659
commit ce3332fdf8

View File

@ -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