head	1.1;
access;
symbols
	TIGRIS_1_0_8_1:1.1
	TIGRIS_1_0_8_0:1.1
	TIGRIS_1_0_4:1.1;
locks; strict;
comment	@# @;


1.1
date	2000.07.20.03.41.34;	author manoj;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Bootstrap the release engineering repository with the current sources
for the RPMs. Contains only things that we develop.
@
text
@#! /bin/sh
###############################################################################
#
# File:         ssh-upload-shell
# RCS:          $Header: $
# Description:  Shell command to use for doing 
#		scp <files> upload@@netbeans.collab.net:.
# Author:       Niels P. Mayer
# Created:      Wed May 31 20:37:47 2000
# Modified:     Sun Jun 11 22:53:24 2000 (Niels Mayer) root@@h02.sny.collab.net
# Language:     Shell-script
# Package:      N/A
# Status:       Experimental (Do Not Distribute)
#
# (C) Copyright 2000, Collab.Net.
#
###############################################################################
 
# make sure nothing funny goes on 
PATH="/bin:/usr/bin"

# make sure they rsh or ssh in with a command 
if [ -z "$1" ] || [ "$1" != "-c" ]; then 
   echo You must use ssh -c to access this account
   exit
else
   # get rid of the -c
   shift
fi

echo "$1" | grep "^scp " > /dev/null 2>/dev/null
if [ $? != 0 ]
then
    exec echo \'$1\' -- You are not authorized to do that.
else
    exec scp `echo $1 | sed s/'^scp '// | xargs`
fi    

# # only let them run specific commands    
## case "$1" in
##    "scp -v -t ." ) # run command1
## 	exec scp -v -t .
## 	;;
##    "scp -r -t ." ) # run command1
## 	exec scp -r -t .
## 	;;
##    "scp -t ." ) # run command1
## 	exec scp -t .
## 	;;
##     default) 
## 	exec echo You are not authorized to do that.
## 	;;
## esac 
@
