Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/mount_portal/examples Renamed so that .sh suffix is not...



details:   https://anonhg.NetBSD.org/src/rev/d5f5521d2154
branches:  trunk
changeset: 519122:d5f5521d2154
user:      bgrayson <bgrayson%NetBSD.org@localhost>
date:      Tue Dec 11 15:35:53 2001 +0000

description:
Renamed so that .sh suffix is not stripped on install

diffstat:

 sbin/mount_portal/examples/cvs.sh         |  39 -------------------------------
 sbin/mount_portal/examples/cvs.sh.sh      |  39 +++++++++++++++++++++++++++++++
 sbin/mount_portal/examples/sysctlfs.sh    |  15 -----------
 sbin/mount_portal/examples/sysctlfs.sh.sh |  15 +++++++++++
 4 files changed, 54 insertions(+), 54 deletions(-)

diffs (124 lines):

diff -r 6159c91d72b0 -r d5f5521d2154 sbin/mount_portal/examples/cvs.sh
--- a/sbin/mount_portal/examples/cvs.sh Tue Dec 11 15:14:25 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-#!/bin/sh
-
-#      $NetBSD: cvs.sh,v 1.1 2001/10/12 16:15:26 atatat Exp $
-
-# ensure that HOME is set for pserver modes
-UID=`id -u`
-export HOME=`awk -F: '$3=='"$UID"'{print$6}' /etc/passwd`
-# supplement path to include ssh and cvs
-export PATH=/usr/pkg/bin:$PATH
-# use ssh instead of rsh for cvs connections
-export CVS_RSH=ssh
-
-case $1 in
-       netbsd)
-               export CVSROOT="anoncvs%anoncvs.netbsd.org@localhost:/cvsroot"
-               shift
-               ;;
-       freebsd)
-               export CVSROOT=":pserver:anoncvs%anoncvs.freebsd.org@localhost:/home/ncvs"
-               shift
-               ;;
-       openbsd)
-               export CVSROOT="anoncvs%anoncvs.usa.openbsd.org@localhost:/cvs"
-               shift
-               ;;
-       *)
-               echo "configuration not supported"
-               exit 0
-esac
-
-for file; do
-       if ( echo $file | egrep -qi '(.*),(-r)?([0-9\.]+|[-a-z0-9]+)$' ); then
-               rev="-r`expr "$file" : '.*,\(.*\)' | sed 's/^-r//'`"
-               file="`expr "$file" : '\(.*\),.*'`"
-       else
-               rev=""
-       fi
-       cvs co -p $rev $file
-done
diff -r 6159c91d72b0 -r d5f5521d2154 sbin/mount_portal/examples/cvs.sh.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sbin/mount_portal/examples/cvs.sh.sh      Tue Dec 11 15:35:53 2001 +0000
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+#      $NetBSD: cvs.sh.sh,v 1.1 2001/12/11 15:35:53 bgrayson Exp $
+
+# ensure that HOME is set for pserver modes
+UID=`id -u`
+export HOME=`awk -F: '$3=='"$UID"'{print$6}' /etc/passwd`
+# supplement path to include ssh and cvs
+export PATH=/usr/pkg/bin:$PATH
+# use ssh instead of rsh for cvs connections
+export CVS_RSH=ssh
+
+case $1 in
+       netbsd)
+               export CVSROOT="anoncvs%anoncvs.netbsd.org@localhost:/cvsroot"
+               shift
+               ;;
+       freebsd)
+               export CVSROOT=":pserver:anoncvs%anoncvs.freebsd.org@localhost:/home/ncvs"
+               shift
+               ;;
+       openbsd)
+               export CVSROOT="anoncvs%anoncvs.usa.openbsd.org@localhost:/cvs"
+               shift
+               ;;
+       *)
+               echo "configuration not supported"
+               exit 0
+esac
+
+for file; do
+       if ( echo $file | egrep -qi '(.*),(-r)?([0-9\.]+|[-a-z0-9]+)$' ); then
+               rev="-r`expr "$file" : '.*,\(.*\)' | sed 's/^-r//'`"
+               file="`expr "$file" : '\(.*\),.*'`"
+       else
+               rev=""
+       fi
+       cvs co -p $rev $file
+done
diff -r 6159c91d72b0 -r d5f5521d2154 sbin/mount_portal/examples/sysctlfs.sh
--- a/sbin/mount_portal/examples/sysctlfs.sh    Tue Dec 11 15:14:25 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-#!/bin/sh
-## $NetBSD: sysctlfs.sh,v 1.1 2000/01/17 07:22:45 bgrayson Exp $
-##  Fast hack at a sysctl filesystem.  The path can be either in
-##  dot-style (kern.mbuf.msize) or in slash-style (kern/mbuf/msize).
-##  Hacked as an example by Brian Grayson (bgrayson%netbsd.org@localhost) in Sep 1999.
-for path in $*; do
-  ##  First, change any slashes into dots.
-  path=`echo $path | tr '/' '.'`
-  ##  Now invoke sysctl, and post-process the output to make it
-  ##  friendlier.  In particular:
-  ##    1.  Remove the leading prefix.
-  ##    2.  Remove a now-leading ".", if any.
-  ##    3.  If we are left with " = <val>", strip out the " = " also.
-  sysctl $path | sed -e "s/$path//;s/^\.//;s/^ = //"
-done
diff -r 6159c91d72b0 -r d5f5521d2154 sbin/mount_portal/examples/sysctlfs.sh.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sbin/mount_portal/examples/sysctlfs.sh.sh Tue Dec 11 15:35:53 2001 +0000
@@ -0,0 +1,15 @@
+#!/bin/sh
+## $NetBSD: sysctlfs.sh.sh,v 1.1 2001/12/11 15:35:53 bgrayson Exp $
+##  Fast hack at a sysctl filesystem.  The path can be either in
+##  dot-style (kern.mbuf.msize) or in slash-style (kern/mbuf/msize).
+##  Hacked as an example by Brian Grayson (bgrayson%netbsd.org@localhost) in Sep 1999.
+for path in $*; do
+  ##  First, change any slashes into dots.
+  path=`echo $path | tr '/' '.'`
+  ##  Now invoke sysctl, and post-process the output to make it
+  ##  friendlier.  In particular:
+  ##    1.  Remove the leading prefix.
+  ##    2.  Remove a now-leading ".", if any.
+  ##    3.  If we are left with " = <val>", strip out the " = " also.
+  sysctl $path | sed -e "s/$path//;s/^\.//;s/^ = //"
+done



Home | Main Index | Thread Index | Old Index