Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Pouliot <sebastien@ximian.com>2005-11-12 20:29:07 +0300
committerSebastien Pouliot <sebastien@ximian.com>2005-11-12 20:29:07 +0300
commitf20172212d168633cf5005e778d006015b1b7f58 (patch)
treec78d094bfb84244266348bdbfac365bd108c5f34 /scripts
parentc4a16a242d339543cf3a411d1f2c6345bf220d7b (diff)
Add a new script to allow some tools, like sn and makecert, to generate files (e.g. private keys) available only to the user (by calling umask 077 before mono)
svn path=/trunk/mono/; revision=52948
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.am15
-rw-r--r--scripts/script_umask.in3
2 files changed, 14 insertions, 4 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index 74cc72969d3..971729823f7 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -1,4 +1,4 @@
-bin_SCRIPTS = $(scripts_1_0) $(scripts_2_0) gmcs mono-service $(scripts_rpmhelpers)
+bin_SCRIPTS = $(scripts_1_0) $(scripts_1_0_umask) $(scripts_2_0) gmcs mono-service $(scripts_rpmhelpers)
scripts_1_0 = \
al \
@@ -12,7 +12,6 @@ scripts_1_0 = \
gacutil \
genxs \
ilasm \
- makecert \
macpack \
mbas \
mcs \
@@ -28,12 +27,15 @@ scripts_1_0 = \
secutil \
setreg \
signcode \
- sn \
soapsuds \
sqlsharp \
wsdl \
xsd
+scripts_1_0_umask = \
+ makecert \
+ sn
+
scripts_2_0 = \
monop2 \
xbuild \
@@ -44,11 +46,12 @@ scripts_rpmhelpers = mono-find-provides mono-find-requires
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA= mono-nunit.pc
-CLEANFILES = $(scripts_1_0) $(scripts_2_0) gmcs mono-service
+CLEANFILES = $(scripts_1_0) $(scripts_1_0_umask) $(scripts_2_0) gmcs mono-service
DISTCLEANFILES = $(pkgconfig_DATA) $(scripts_rpmhelpers)
EXTRA_DIST = \
script.in \
+ script_umask.in \
mono-service.in \
mono-nunit.pc.in \
mono-find-provides.in \
@@ -86,6 +89,10 @@ $(scripts_1_0): script.in Makefile
$(REWRITE1) -e 's,@''exe_name@,$@,g' $(srcdir)/script.in > $@.tmp
mv $@.tmp $@
+$(scripts_1_0_umask): script_umask.in Makefile
+ $(REWRITE1) -e 's,@''exe_name@,$@,g' $(srcdir)/script_umask.in > $@.tmp
+ mv $@.tmp $@
+
gmcs: script.in Makefile
$(REWRITE2) -e 's,@''exe_name@,$@,g' $(srcdir)/script.in > $@.tmp
mv $@.tmp $@
diff --git a/scripts/script_umask.in b/scripts/script_umask.in
new file mode 100644
index 00000000000..dc15f721f32
--- /dev/null
+++ b/scripts/script_umask.in
@@ -0,0 +1,3 @@
+#!/bin/sh
+umask 077
+exec @bindir@/@mono_interp@ @mono_instdir@/@framework_version@/@exe_name@.exe "$@"