]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
make-dist: add alpine support
authorJohn Coyle <dx9err@gmail.com>
Wed, 21 Dec 2016 01:21:57 +0000 (20:21 -0500)
committerJohn Coyle <dx9err@gmail.com>
Wed, 21 Dec 2016 01:21:57 +0000 (20:21 -0500)
Signed-off-by: John Coyle <dx9err@gmail.com>
make-dist

index 021e9e381b94e3f8e8795c33d1203110ea8ce92e..7bc40f115abc67f24fae292784a71ccfb55e3cb2 100755 (executable)
--- 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