[nautilus-actions] tools/release-tarball.sh: Updated for new Gnome ftpadmin script



commit dae5a0a43aef7b071146969412cf3794cdb1cc50
Author: Pierre Wieser <pwieser trychlos org>
Date:   Fri May 20 20:10:15 2011 +0200

    tools/release-tarball.sh: Updated for new Gnome ftpadmin script
    
    - now requires ksh
    - makes only use of name() function declaration.

 ChangeLog                |    2 ++
 tools/release-tarball.sh |   18 +++++++++---------
 2 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4e99448..6b45ead 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2011-05-20 Pierre Wieser <pwieser trychlos org>
 
+	* tools/release-tarball.sh: Use new Gnome release script ftpadmin.
+
 	* nautilus-actions.doap: Update download page and mailing list infos.
 
 	* configure.ac: Post release version bump.
diff --git a/tools/release-tarball.sh b/tools/release-tarball.sh
index c5d86b6..305d92d 100755
--- a/tools/release-tarball.sh
+++ b/tools/release-tarball.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/ksh
 # Nautilus-Actions
 # A Nautilus extension which offers configurable context menu actions.
 #
@@ -64,12 +64,12 @@ trap 'trap_term' TERM
 trap 'trap_int'  INT
 trap 'trap_exit' EXIT
 
-function clear_tmpfiles
+clear_tmpfiles()
 {
 	\rm -f ${my_tmproot}.*
 }
 
-function msg
+msg()
 {
 	typeset _eol="\n"
 	[ $# -ge 2 ] && _eol="${2}"
@@ -77,19 +77,19 @@ function msg
 	return 0
 }
 
-function msgerr
+msgerr()
 {
 	msg "error: ${1}" 1>&2
 	return $?
 }
 
-function msgwarn
+msgwarn()
 {
 	msg "warning: ${1}" 1>&2
 	return $?
 }
 
-function msg_help
+msg_help()
 {
 	msg_version
 	echo "
@@ -104,7 +104,7 @@ function msg_help
    --[no]stable              whether this is a stable version [${opt_stable_def}]"
 }
 
-function msg_version
+msg_version()
 {
 	pck_name=$(grep '^PACKAGE_NAME' Makefile 2>/dev/null | awk '{ print $3 }')
 	pck_version=$(grep '^PACKAGE_VERSION' Makefile 2>/dev/null | awk '{ print $3 }')
@@ -321,7 +321,7 @@ fi
 
 # returns the last return code which happens to be the eval one
 #
-function command
+command()
 {
 	typeset _cmd="${1}"
 	typeset -i _ret=0
@@ -387,7 +387,7 @@ fi
 # installing on gnome.org
 msg "installing on gnome.org"
 command "scp "${opt_tarname}" pwieser master gnome org:"
-command "ssh pwieser master gnome org install-module -u ${opt_tarname}"
+command "ssh pwieser master gnome org ftpadmin install --unattended ${opt_tarname}"
 
 # installing on kimsufi
 msg "installing on kimsufi"



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