[gnue] r9565 - trunk/gnue-common/utils

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
Author: reinhard
Date: 2007-05-09 13:26:43 -0500 (Wed, 09 May 2007)
New Revision: 9565

Added:
   trunk/gnue-common/utils/announce-release
   trunk/gnue-common/utils/build-packages
Removed:
   trunk/gnue-common/utils/release-announce
Modified:
   trunk/gnue-common/utils/release
Log:
Updated release script to also create debian packages, separated out script to
build packages so it can also be used for nightlies.


Copied: trunk/gnue-common/utils/announce-release (from rev 9546, trunk/gnue-common/utils/release-announce)

Added: trunk/gnue-common/utils/build-packages
===================================================================
--- trunk/gnue-common/utils/build-packages	2007-05-09 18:08:49 UTC (rev 9564)
+++ trunk/gnue-common/utils/build-packages	2007-05-09 18:26:43 UTC (rev 9565)
@@ -0,0 +1,31 @@
+#!/bin/bash -e
+# Script for packaging
+
+if [ ! -d "src" ]; then
+  echo "Please start this script in the package directory!"
+  exit 1
+fi
+
+package=$(basename $(pwd) | sed -e 's/gnue-//')
+version=$(echo "import src; print src.version.get_version()" | gcvs)
+
+echo "$(date --rfc-3339=seconds) Packaging gnue-${package} ${version}"
+
+# Create the source packages (.tar.gz and .zip)
+echo "$(date --rfc-3339=seconds) Creating source packages"
+rm --force MANIFEST
+rm --recursive --force build dist
+gcvs setup.py --quiet sdist --format="gztar,zip"
+
+# Create the debian package (.deb)
+echo "$(date --rfc-3339=seconds) Creating debian package"
+cd dist
+tar xfz gnue-${package}-${version}.tar.gz
+cd gnue-${package}-${version}
+ln --symbolic packaging/debian debian
+DEBMAIL="GNU Enterprise project <[email protected]>" \
+    debchange --newversion ${version}-0 "Inofficial Debian package"
+MAKEFLAGS=--quiet fakeroot debian/rules binary
+cd ..
+rm --recursive --force gnue-${package}-${version}
+cd ..


Property changes on: trunk/gnue-common/utils/build-packages
___________________________________________________________________
Name: svn:executable
   + *

Modified: trunk/gnue-common/utils/release
===================================================================
--- trunk/gnue-common/utils/release	2007-05-09 18:08:49 UTC (rev 9564)
+++ trunk/gnue-common/utils/release	2007-05-09 18:26:43 UTC (rev 9565)
@@ -13,28 +13,30 @@
 phase=$(echo "import src; print src.version.phase" | gcvs)
 build=$(echo "import src; print src.version.build" | gcvs)
 
-echo "Releasing version $version of gnue-$package"
+echo "$(date --rfc-3339=seconds) Releasing gnue-$package $version"
 
 # Update svn so we don't forget any changes
+echo "$(date --rfc-3339=seconds) Updating svn"
 svn update
 
 # Update the po files
 # Also generates the gmo files so following commands (e.g. generating manpages)
 # already get the latest translation
+echo "$(date --rfc-3339=seconds) Updating translation files"
 (cd po; make update-po gmo)
 
 # Update tools documentation
+echo "$(date --rfc-3339=seconds) Updating documentation"
 (cd ..; gnue-common/utils/update-tool-docs $package)
 
 # Rebuild sample.gnue.conf if we're releaseing common
 if [ "$package" == "common" ]; then
+  echo "$(date --rfc-3339=seconds) Updating sample configuration file"
   (cd etc; LANG=C gcvs ../utils/generate-gnue-config.py)
 fi
 
-# Create the distribution files
-rm --force MANIFEST
-rm --recursive --force build dist
-gcvs setup.py sdist --format="gztar,zip"
+# Create the package files
+../gnue-common/utils/build-packages
 
 # Wait for firewall
 sleep 20
@@ -73,4 +75,4 @@
 fi
 
 # Announce the release
-../gnue-common/utils/release-announce
+../gnue-common/utils/announce-release

Deleted: trunk/gnue-common/utils/release-announce
===================================================================
--- trunk/gnue-common/utils/release-announce	2007-05-09 18:08:49 UTC (rev 9564)
+++ trunk/gnue-common/utils/release-announce	2007-05-09 18:26:43 UTC (rev 9565)
@@ -1,180 +0,0 @@
-#!/bin/bash -e
-# Script to announce a new release
-
-# Where to send the mail to
-mail_release="[email protected] [email protected] [email protected]"
-mail_prerelease="[email protected] [email protected]"
-
-if [ ! -d "src" ]; then
-  echo "Please start this script in the package directory!"
-  exit 1
-fi
-
-package=$(basename $(pwd) | sed -e 's/gnue-//')
-title=$(echo "import src; print src.TITLE" | gcvs)
-version=$(echo "import src; print src.version.get_version()" | gcvs)
-phase=$(echo "import src; print src.version.phase" | gcvs)
-build=$(echo "import src; print src.version.build" | gcvs)
-
-echo "Announcing version $version of gnue-$package"
-
-# Get project description from README file
-description=$(
-  cat README | (
-    while read line; do
-      if [ "$line" == "Introduction" ]; then
-        read line                       # this is the ---- line
-        break
-      fi
-    done
-    while read line; do
-      if [ "$line" == "" ]; then
-        break
-      fi
-      echo "$line"
-    done
-  )
-)
-
-# Get list of changes from NEWS file
-changes=$(
-  cat NEWS | (
-    read line                           # ignore "Changes in version..." line
-    while read line; do
-      if [ "$line" == "" ]; then
-        break
-      fi
-      echo "$line"
-    done
-  )
-)
-
-# Create the release text
-announcement=$(
-  echo "The GNU Enterprise team proudly announces"
-  echo ""
-  echo "   $title $version."
-  echo ""
-  if [ "$phase" == "alpha" ]; then
-    echo ""
-    echo "This is an unstable alpha version and mainly targeted at"
-    echo "developers."
-    echo ""
-    echo ""
-    echo "This version is likely to have bugs. If you want to use the"
-    echo "program in production, please consider using the latest"
-    echo "stable version instead."
-    echo ""
-  fi
-  if [ "$phase" == "beta" ]; then
-    echo ""
-    echo "This is an unstable beta version and mainly targeted at"
-    echo "developers."
-    echo ""
-    echo ""
-    echo "This version might still have bugs. If you want to use the"
-    echo "program in production, please consider using the latest"
-    echo "stable version instead."
-    echo ""
-  fi
-  if [ "$phase" == "pre" ]; then
-    echo ""
-    echo "This is a prerelease version and mainly targeted at"
-    echo "developers, packagers and translators.  You can expect the"
-    echo "final release within a few days or weeks."
-    echo ""
-    echo ""
-    echo "We request all translators to send in their translations as"
-    echo "soon as possible so they can be included in the final release."
-    echo ""
-  fi
-  if [ "$phase" == "rc" ]; then
-    echo ""
-    echo "This version is a release candidate and mainly targeted at"
-    echo "developers, packagers and translators.  You can expect the"
-    echo "final release within a few days."
-    echo ""
-    echo ""
-    echo "We request all translators to send in their translations as"
-    echo "soon as possible so they can be included in the final release."
-    echo ""
-  fi
-  if [ "$phase" == "final" ]; then
-    if [ "$build" == "0" ]; then
-      echo ""
-      echo "This is the new stable version."
-      echo ""
-    else
-      echo ""
-      echo "This is an updated stable version and contains only bug"
-      echo "fixes and/or translation updates."
-      echo ""
-    fi
-  fi
-  echo ""
-  echo "$description" | fmt --width=72
-  echo ""
-  if [ "$phase" == "final" ]; then
-    echo ""
-    echo "Changes and new features since the last stable version:"
-    echo ""
-    echo "$changes"
-    echo ""
-    echo ""
-    (
-      echo "You can download this release of $title from"
-      echo "http://www.gnuenterprise.org/tools/$package/$version/"
-    ) | fmt --width=72
-  else
-    echo ""
-    echo "This version already contains the following changes and new"
-    echo "features of the planned final release:"
-    echo ""
-    echo "$changes"
-    echo ""
-    echo ""
-    (
-      echo "As usual, you can download the unstable builds of $title from"
-      echo "http://www.gnuenterprise.org/downloads/prereleases.php"
-    ) | fmt --width=72
-  fi
-)
-
-# Send the email
-if [ "$phase" == "final" ]; then
-  mail="$mail_release"
-else
-  mail="$mail_prerelease"
-fi
-for recepient in $mail; do
-  echo "$announcement" | mail -a "From: [email protected]" \
-                           -s "$title $version released" \
-                           $recepient
-done
-
-# Create news entry for the web page
-if [ "$phase" == "final" ]; then
-  (
-    cd ../www/news
-
-    # Wait for firewall
-    sleep 20
-
-    svn update
-
-    let number="$(ls 1* | tail -1) + 1"
-    (
-      echo "Title: $title $version released"
-      echo "Author: [email protected]"
-      echo "Date: $(date --iso)"
-      echo ""
-      echo "$announcement"
-    ) > $number
-    svn add $number
-
-    # Wait for firewall
-    sleep 20
-
-    svn commit --message "Released $title ${version}."
-  )
-fi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.