r7081 - in packages/trunk/ogre/debian: . extras
Andres Mejia
ceros-guest at alioth.debian.org
Sat May 17 00:45:09 UTC 2008
Author: ceros-guest
Date: 2008-05-17 00:45:09 +0000 (Sat, 17 May 2008)
New Revision: 7081
Added:
packages/trunk/ogre/debian/extras/ogre-plugins-config.1
packages/trunk/ogre/debian/extras/update-ogre-plugins.1
Removed:
packages/trunk/ogre/debian/extras/update-ogre-plugins.8
Modified:
packages/trunk/ogre/debian/extras/ogre-plugins-config.in
packages/trunk/ogre/debian/extras/update-ogre-plugins.in
packages/trunk/ogre/debian/libogremain-VERSION.manpages
packages/trunk/ogre/debian/rules
Log:
Update manpages
Added: packages/trunk/ogre/debian/extras/ogre-plugins-config.1
===================================================================
--- packages/trunk/ogre/debian/extras/ogre-plugins-config.1 (rev 0)
+++ packages/trunk/ogre/debian/extras/ogre-plugins-config.1 2008-05-17 00:45:09 UTC (rev 7081)
@@ -0,0 +1,39 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH OGRE-PLUGINS-CONFIG 1 "May 16, 2008"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+ogre-plugins-config \- print file name of path to plugins configuration file.
+.SH SYNOPSIS
+.B ogre-plugins-config
+.br
+.SH DESCRIPTION
+\fBogre-plugins-config\fP will print the filename or the full path to the
+plugins configuration file.
+.SH OPTIONS
+Options processed by the wrapper script:
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+Display a short help summary
+.TP
+\fB\-f\fR, \fB\-\-plugins\-file\fR
+Display the basename of the plugins configuration file.
+.TP
+\fB\-p\fR, \fB\-\-plugins\-file\-path\fR
+Display the full path to the plugins configuration file.
+.SH AUTHOR
+This manual page was written by Andres Mejia <mcitadel at gmail.com>
+for the Debian GNU/Linux system, but may be used by others.
Modified: packages/trunk/ogre/debian/extras/ogre-plugins-config.in
===================================================================
--- packages/trunk/ogre/debian/extras/ogre-plugins-config.in 2008-05-16 23:43:58 UTC (rev 7080)
+++ packages/trunk/ogre/debian/extras/ogre-plugins-config.in 2008-05-17 00:45:09 UTC (rev 7081)
@@ -10,8 +10,8 @@
Usage: ogre-plugins-config [OPTION]\n\
\n\
-h, --help Display this help message.\n\
- -f, --plugins-file Keep the upstream source tarball.\n\
- -p, --plugins-file-path Keep the generated orig directory.\n"
+ -f, --plugins-file Show the plugins file basename.\n\
+ -p, --plugins-file-path Show the plugins file full path.\n"
if [ "$#" = "0" ]; then
echo "${USAGE}"
@@ -22,11 +22,11 @@
case "$1" in
-f|--plugins-file)
echo "plugins- at VERSION@.cfg"
- exit 0
+ break
;;
-p|--plugins-file-path)
echo "/etc/OGRE/plugins- at VERSION@.cfg"
- exit 0
+ break
;;
-h|--help|*)
echo "${USAGE}"
Copied: packages/trunk/ogre/debian/extras/update-ogre-plugins.1 (from rev 7057, packages/trunk/ogre/debian/extras/update-ogre-plugins.8)
===================================================================
--- packages/trunk/ogre/debian/extras/update-ogre-plugins.1 (rev 0)
+++ packages/trunk/ogre/debian/extras/update-ogre-plugins.1 2008-05-17 00:45:09 UTC (rev 7081)
@@ -0,0 +1,47 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH UPDATE-OGRE-PLUGINS 1 "May 16, 2008"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+update-ogre-plugins \- rebuild /etc/OGRE/plugins-<version>.cfg
+.SH SYNOPSIS
+.B update-ogre-plugins
+.br
+.SH DESCRIPTION
+\fBupdate-ogre-plugins\fP uses the information placed by Ogre plugin
+packages in /etc/OGRE to build the plugins-<version>.cfg configuration file,
+used by the Ogre system to locate and load plugins' shared libraries.
+.PP
+An application can provide its own plugins.cfg file but
+/etc/OGRE/plugins-<version>.cfg is the official list of all installed plugins.
+.PP
+The <version> indicates a particular version of the plugins file this script
+updates. By default, it will update the latest version of the plugins
+configuration file.
+.SH OPTIONS
+Options processed by the script:
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+Display a short help summary
+.TP
+\fB\-v VERSION\fR, \fB\-\-version=VERSION\fR
+Update the file /etc/OGRE/plugins-\fIVERSION\fR.cfg
+.TP
+\fB\-s\fR, \fB\-\-show\fR
+Show the default version of this script will use.
+.SH AUTHOR
+This manual page was written by Federico Di Gregorio <fog at debian.org>
+for the Debian GNU/Linux system, but may be used by others.
Deleted: packages/trunk/ogre/debian/extras/update-ogre-plugins.8
===================================================================
--- packages/trunk/ogre/debian/extras/update-ogre-plugins.8 2008-05-16 23:43:58 UTC (rev 7080)
+++ packages/trunk/ogre/debian/extras/update-ogre-plugins.8 2008-05-17 00:45:09 UTC (rev 7081)
@@ -1,34 +0,0 @@
-.\" Hey, EMACS: -*- nroff -*-
-.\" First parameter, NAME, should be all caps
-.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
-.\" other parameters are allowed: see man(7), man(1)
-.TH UPDATE-OGRE-PLUGINS 8 "Jan 3, 2005"
-.\" Please adjust this date whenever revising the manpage.
-.\"
-.\" Some roff macros, for reference:
-.\" .nh disable hyphenation
-.\" .hy enable hyphenation
-.\" .ad l left justify
-.\" .ad b justify to both left and right margins
-.\" .nf disable filling
-.\" .fi enable filling
-.\" .br insert line break
-.\" .sp <n> insert n+1 empty lines
-.\" for manpage-specific macros, see man(7)
-.SH NAME
-update-ogre-plugins \- rebuild /etc/OGRE/plugins.cfg
-.SH SYNOPSIS
-.B update-ogre-plugins
-.br
-.SH DESCRIPTION
-\fBupdate-ogre-plugins\fP uses the information placed by Ogre plugin
-packages in /etc/OGRE to build the plugins.cfg configuration file, used
-by the Ogre system to locate and load plugins' shared libraries.
-.br
-An application can provide its own plugins.cfg file but
-/etc/OGRE/plugins.cfg is the official list of all installed plugins.
-.SH OPTIONS
-This command does not take any options.
-.SH AUTHOR
-This manual page was written by Federico Di Gregorio <fog at debian.org>
-for the Debian GNU/Linux system, but may be used by others.
Modified: packages/trunk/ogre/debian/extras/update-ogre-plugins.in
===================================================================
--- packages/trunk/ogre/debian/extras/update-ogre-plugins.in 2008-05-16 23:43:58 UTC (rev 7080)
+++ packages/trunk/ogre/debian/extras/update-ogre-plugins.in 2008-05-17 00:45:09 UTC (rev 7081)
@@ -1,14 +1,57 @@
#!/bin/sh
-sed -e '/# -\*- ogre-plugins -\*-/ q' \
- /etc/OGRE/plugins- at VERSION@.cfg >/etc/OGRE/plugins- at VERSION@.cfg-new
+# This script is used to update the plugins configuration files.
-PARTS="`ls 2>/dev/null /etc/OGRE/plugins- at VERSION@.cfg.*`"
-for f in $PARTS ; do
- if [ -z "`echo $f | grep dpkg`" ] ; then
- echo Adding $f
- cat $f >>/etc/OGRE/plugins- at VERSION@.cfg-new
- fi
+USAGE="\n\
+This script is used to update the plugins configuration file. It updates the\n\
+latest plugins configuration file by default, but a specific version can be\n\
+selected as well. This script can also display the default version it uses.\n\
+Usage: update-ogre-plugins [OPTION]\n\
+\n\
+ -h, --help Display this help message.\n\
+ -v VERSION, --version=VERSION Select the version to use.\n\
+ -s, --show Show the default version.\n"
+
+OGRE_VERSION="@VERSION@"
+
+while [ "$#" -gt "0" ]
+do
+ case "$1" in
+ -v)
+ OGRE_VERSION="$2"
+ break
+ ;;
+ --version=*)
+ OGRE_VERSION=$(echo "$1" | sed 's/--version=//')
+ break
+ ;;
+ -s|--show)
+ echo $OGRE_VERSION
+ exit 0
+ ;;
+ -h|--help|*)
+ echo "${USAGE}"
+ exit 1
+ ;;
+ esac
done
-mv /etc/OGRE/plugins- at VERSION@.cfg-new /etc/OGRE/plugins- at VERSION@.cfg
+if [ -f /etc/OGRE/plugins-$OGRE_VERSION.cfg ]; then
+ echo "Updating /etc/OGRE/plugins-$OGRE_VERSION.cfg."
+ sed -e '/# -\*- ogre-plugins -\*-/ q' \
+ /etc/OGRE/plugins-$OGRE_VERSION.cfg \
+ >/etc/OGRE/plugins-$OGRE_VERSION.cfg-new
+
+ PARTS="`ls 2>/dev/null /etc/OGRE/plugins-$OGRE_VERSION.cfg.*`"
+ for f in $PARTS ; do
+ if [ -z "`echo $f | grep dpkg`" ] ; then
+ echo Adding $f
+ cat $f >>/etc/OGRE/plugins-$OGRE_VERSION.cfg-new
+ fi
+ done
+
+ mv /etc/OGRE/plugins-$OGRE_VERSION.cfg-new /etc/OGRE/plugins-$OGRE_VERSION.cfg
+else
+ echo "/etc/OGRE/plugins-$OGRE_VERSION.cfg doesn't exist or is not a file."
+ exit 1
+fi
Modified: packages/trunk/ogre/debian/libogremain-VERSION.manpages
===================================================================
--- packages/trunk/ogre/debian/libogremain-VERSION.manpages 2008-05-16 23:43:58 UTC (rev 7080)
+++ packages/trunk/ogre/debian/libogremain-VERSION.manpages 2008-05-17 00:45:09 UTC (rev 7081)
@@ -1 +1 @@
-debian/extras/update-ogre-plugins.8
+debian/extras/update-ogre-plugins.1
Modified: packages/trunk/ogre/debian/rules
===================================================================
--- packages/trunk/ogre/debian/rules 2008-05-16 23:43:58 UTC (rev 7080)
+++ packages/trunk/ogre/debian/rules 2008-05-17 00:45:09 UTC (rev 7081)
@@ -156,9 +156,9 @@
dh_installdocs -a
dh_installexamples -a
dh_installman -a
- dh_strip -plibogremain-1.4.8 --dbg-package=libogremain-1.4.8-dbg
- dh_strip -plibceguiogrerenderer-1.4.8 \
- --dbg-package=libceguiogrerenderer-1.4.8-dbg
+ dh_strip -plibogremain-$(OGRE_VERSION) --dbg-package=libogremain-$(OGRE_VERSION)-dbg
+ dh_strip -plibceguiogrerenderer-$(OGRE_VERSION) \
+ --dbg-package=libceguiogrerenderer-$(OGRE_VERSION)-dbg
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
dh_strip -pogre-tools
endif
More information about the Pkg-games-commits
mailing list