diff options
author | Miguel de Icaza <miguel@gnome.org> | 2005-04-06 03:35:52 +0400 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2005-04-06 03:35:52 +0400 |
commit | c3272462ce87dc9ea961695c1bb8c38bc3aed4d3 (patch) | |
tree | 2e744c5bf35453ace54e18454451f32424ab5710 /scripts | |
parent | 154f96e250853f03c8cb0aa2f887747ba4a4abbe (diff) |
Add script for mono-service
svn path=/trunk/mono/; revision=42588
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.am | 9 | ||||
-rw-r--r-- | scripts/mono-service.in | 19 |
2 files changed, 27 insertions, 1 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am index a9f2e391caa..a2f50a04fc2 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -1,7 +1,8 @@ -EXTRA_DIST = script.in script2.in mono-nunit.pc.in +EXTRA_DIST = script.in script2.in mono-service.in mono-nunit.pc.in DISTCLEANFILES = mono-nunit.pc bin2dir = $(bindir) +servicedir = $(bindir) bin_SCRIPTS = \ al \ @@ -39,6 +40,8 @@ bin_SCRIPTS = \ bin2_SCRIPTS = gmcs wsdl2 +service_SCRIPTS = mono-service + CLEANFILES = $(bin_SCRIPTS) $(bin2_SCRIPTS) if USE_JIT @@ -66,6 +69,10 @@ REWRITE = sed \ -e 's,@''exe_file@,$@.exe,g' \ -e 's,@''mono_interp@,$(MONO_INTERP),g' +mono-service: mono-service.in Makefile + $(REWRITE) $(srcdir)/mono-service.in > $@.tmp + mv $@.tmp $@ + $(bin_SCRIPTS): script.in Makefile $(REWRITE) $(srcdir)/script.in > $@.tmp mv $@.tmp $@ diff --git a/scripts/mono-service.in b/scripts/mono-service.in new file mode 100644 index 00000000000..bb5a8185033 --- /dev/null +++ b/scripts/mono-service.in @@ -0,0 +1,19 @@ +#!/bin/sh +args="$@" +assembly= +while test x$1 != x; do + case $1 in + -[ldnm]:*) ;; + *) assembly=$1;; + esac + shift +done + +if test x$assembly = x; then + echo You must specify at least the assembly name + echo Usage is: + echo mono-service [-d:DIRECTORY] [-l:LOCKFILE] [-n:NAME] [-m:LOGNAME] service.exe + exit 1 +fi + +exec @bindir@/@mono_interp@ @mono_one_instdir@/@exe_file@ "$args"
\ No newline at end of file |