Skip to content

Commit ce3332f

Browse files
committed
make-dist: add alpine support
Signed-off-by: John Coyle <[email protected]>
1 parent 9001d7e commit ce3332f

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

make-dist

+8-5
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,15 @@ else
4949
rpm_release=0
5050
fi
5151

52-
cat ceph.spec.in | \
53-
sed "s/@VERSION@/$rpm_version/g" | \
54-
sed "s/@RPM_RELEASE@/$rpm_release/g" |
55-
sed "s/@TARBALL_BASENAME@/ceph-$version/g" > ceph.spec
52+
53+
for spec in ceph.spec.in alpine/APKBUILD.in; do
54+
cat $spec |
55+
sed "s/@VERSION@/$rpm_version/g" |
56+
sed "s/@RPM_RELEASE@/$rpm_release/g" |
57+
sed "s/@TARBALL_BASENAME@/ceph-$version/g" > `echo $spec | sed 's/.in$//'`
58+
done
5659
ln -s . $outfile
57-
tar cvf $outfile.version.tar $outfile/src/.git_version $outfile/ceph.spec
60+
tar cvf $outfile.version.tar $outfile/src/.git_version $outfile/ceph.spec $outfile/alpine/APKBUILD
5861
tar --concatenate -f $outfile.both.tar $outfile.version.tar
5962
tar --concatenate -f $outfile.both.tar $outfile.tar
6063
mv $outfile.both.tar $outfile.tar

0 commit comments

Comments
 (0)