gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r11952: adjust the Distribution vers


From: Rob Savoye
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r11952: adjust the Distribution version when making the spec file.
Date: Mon, 15 Feb 2010 09:46:21 -0700
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 11952
committer: Rob Savoye <address@hidden>
branch nick: trunk
timestamp: Mon 2010-02-15 09:46:21 -0700
message:
  adjust the Distribution version when making the spec file.
modified:
  packaging/rpm.am
=== modified file 'packaging/rpm.am'
--- a/packaging/rpm.am  2010-02-09 04:07:04 +0000
+++ b/packaging/rpm.am  2010-02-15 16:46:21 +0000
@@ -28,7 +28,14 @@
        snapshot_version="$(SNAPSHOT_VERSION)"; \
        snapshot_version=`echo $${snapshot_version}|tr "~" "_"`; \
        echo "Editing the version in the spec file to be 
$${snapshot_version}..."; \
-       sed -e "s/Version.*/Version:    $${snapshot_version}/" 
$(srcdir)/packaging/redhat/gnash.spec > gnash.spec;
+       distver=`cat /etc/redhat-release | cut -d ' ' -f 3`; \
+       if test ${distdir} -eq 12; then \
+         sed -e "s/Version.*/Version:  $${snapshot_version}/" 
$(srcdir)/packaging/redhat/gnash.spec > gnash.spec; \
+       else \
+         sed -e "s/Version.*/Version:  $${snapshot_version}/" \
+             -e "s/Distribution:   fc12/Distribution:   fc11/" 
$(srcdir)/packaging/redhat/gnash.spec > gnash.spec; \
+       fi
+
 
 # Build an Redhat/Fedora .rpm package
 # We do this by using the source snapshot that we know is 'distclean'.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]