m4/gst-args: Properly set the package name for git/pre-release/release
authorEdward Hervey <bilboed@bilboed.com>
Wed, 14 Oct 2009 06:40:11 +0000 (08:40 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 14 Oct 2009 08:29:23 +0000 (10:29 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=598248

m4/gst-args.m4

index dcd914c..8c58667 100644 (file)
@@ -176,13 +176,16 @@ AC_DEFUN([AG_GST_ARG_WITH_PACKAGE_NAME],
         P=$PACKAGE_NAME
       fi
 
-      dnl default value
-      if test "x$GST_GIT" = "xyes" -o "x$GST_CVS" = "xyes"
+      if "x$PACKAGE_VERSION_NANO" = "x0"
       then
-        dnl nano >= 1
-        GST_PACKAGE_NAME="$P git/prerelease"
-      else
         GST_PACKAGE_NAME="$P source release"
+      else
+        if "x$PACKAGE_VERSION_NANO" = "x1"
+        then
+          GST_PACKAGE_NAME="$P git"
+        else
+          GST_PACKAGE_NAME="$P prerelease"
+        fi
       fi
     ]
   )