Skip to Content.
Sympa Menu

idok-commit - [idok-commit] idok commit r221 - in trunk/sites/psi/scripts/admin/dmsd: . dist

idok-commit AT lists.psi.ch

Subject: Commit emails of the iDok project

List archive

[idok-commit] idok commit r221 - in trunk/sites/psi/scripts/admin/dmsd: . dist


Chronological Thread 
  • From: "AFS account Stadler Hans Christian" <stadler_h AT savannah.psi.ch>
  • To: idok-commit AT lists.psi.ch
  • Subject: [idok-commit] idok commit r221 - in trunk/sites/psi/scripts/admin/dmsd: . dist
  • Date: Tue, 23 Sep 2008 11:44:35 +0200
  • List-archive: <https://lists.web.psi.ch/pipermail/idok-commit/>
  • List-id: Commit emails of the iDok project <idok-commit.lists.psi.ch>

Author: stadler_h
Date: Tue Sep 23 11:44:35 2008
New Revision: 221

Log:
Added version command to the initd script

Modified:
trunk/sites/psi/scripts/admin/dmsd/build.xml
trunk/sites/psi/scripts/admin/dmsd/dist/dmsd

Modified: trunk/sites/psi/scripts/admin/dmsd/build.xml
==============================================================================
--- trunk/sites/psi/scripts/admin/dmsd/build.xml (original)
+++ trunk/sites/psi/scripts/admin/dmsd/build.xml Tue Sep 23 11:44:35
2008
@@ -144,7 +144,11 @@
<copy todir="${dist}" overwrite="true">
<fileset dir="${src}/${extra}/dist"
casesensitive="yes" includes="*"/>
</copy>
+ <exec executable="svnversion" failonerror="true"
outputproperty="svnversion">
+ <arg value="-n"/>
+ </exec>
<replace file="${dist}/dmsd" token="DEFINE_DMSD_DIR"
value="DMSD_DIR=${dest}"/>
+ <replace file="${dist}/dmsd" token="DEFINE_DMSD_VERSION"
value="DMSD_VERSION=${svnversion}"/>
<replace file="${dist}/dmsd.config" token="DEFINE_CLASS_PATH"
value="${lib-all}"/>
<replace file="${dist}/dmsd.config" token="${dist}/"
value=""/>
</target>

Modified: trunk/sites/psi/scripts/admin/dmsd/dist/dmsd
==============================================================================
--- trunk/sites/psi/scripts/admin/dmsd/dist/dmsd (original)
+++ trunk/sites/psi/scripts/admin/dmsd/dist/dmsd Tue Sep 23 11:44:35
2008
@@ -10,6 +10,9 @@
# The dmsd installation directory, will be replaced by installation specific
define
DEFINE_DMSD_DIR

+# The version of the dmsd daemon
+DEFINE_DMSD_VERSION
+
PROG=dmsd

# Source the utility functions
@@ -91,8 +94,13 @@
return ${?}
}

+function f_version () {
+ echo "dmsd version is ${DMSD_VERSION}"
+ return 0
+}
+
f_usage() {
- echo $"Usage: $0 {start|stop|status|restart|condrestart|loglevel
<level>}"
+ echo $"Usage: $0
{start|stop|status|restart|condrestart|version|loglevel <level>}"
exit 1
}




  • [idok-commit] idok commit r221 - in trunk/sites/psi/scripts/admin/dmsd: . dist, AFS account Stadler Hans Christian, 09/23/2008

Archive powered by MHonArc 2.6.19.

Top of Page