[Groonga-commit] groonga/groonga at 51e0da1 [master] package yum: create groonga-release-latest.noarch.rpm for convenient

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Apr 4 09:34:10 JST 2018


Kouhei Sutou	2018-04-04 09:34:10 +0900 (Wed, 04 Apr 2018)

  New Revision: 51e0da1122f9a958e1fd7dce6406a38ad4d7906e
  https://github.com/groonga/groonga/commit/51e0da1122f9a958e1fd7dce6406a38ad4d7906e

  Message:
    package yum: create groonga-release-latest.noarch.rpm for convenient

  Modified files:
    packages/yum/build-release-rpm.sh

  Modified: packages/yum/build-release-rpm.sh (+9 -0)
===================================================================
--- packages/yum/build-release-rpm.sh    2018-04-03 22:53:27 +0900 (19b036fe1)
+++ packages/yum/build-release-rpm.sh    2018-04-04 09:34:10 +0900 (4840039d3)
@@ -92,6 +92,15 @@ EOR
 	${script_base_dir}/RPM-GPG-KEY-${PACKAGE} \
 	$top_dir
 
+    release_spec=$rpm_base_dir/SPECS/${PACKAGE}-release.spec
+    release_version=$(grep '^Version: ' ${release_spec} | \
+			sed -e 's/^Version: //')
+    run cd $top_dir
+    run ln -fs \
+	${PACKAGE}-release-${release_version}.noarch.rpm \
+	${PACKAGE}-release-latest.noarch.rpm
+    run cd -
+
     for distribution_version in $distribution_versions; do
 	cp $top_dir/*.src.rpm $top_dir/$distribution_version/source/SRPMS/
 	if [ -d "$top_dir/$distribution_version/i386/Packages" ]; then
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180404/5bf7d11b/attachment.htm 



More information about the Groonga-commit mailing list
Back to archive index