Changeset 235 for trunk/dasscm


Ignore:
Timestamp:
Oct 8, 2008, 5:25:26 PM (16 years ago)
Author:
joergs
Message:

added /bin/bash evaluation, added alternative commands st and update, login USER works now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dasscm/dasscm

    r234 r235  
    66
    77use Env
    8   qw($DASSCM_PROD $DASSCM_REPO $USER $DASSCM_USERNAME $DASSCM_USER $DASSCM_PASSWORD);
     8  qw($DASSCM_PROD $DASSCM_REPO $USER $DASSCM_USERNAME $DASSCM_USER $DASSCM_PASSWORD $SHELL);
    99use Cwd;
    1010use Getopt::Long;
     
    166166
    167167    #
    168     # check if local repository directory exist (if not creating by init)
     168    # check if local repository directory exist
     169    # (if not creating by init)
    169170    #
    170171    if ( $command ne "init" ) {
     
    425426    check_env();
    426427
    427     my $input_username = $1;
     428    my $input_username = $_[0];
    428429
    429430    if ( not $input_username ) {
     
    459460      "Server Repository: $DASSCM_SVN_REPOSITORY\n", "\n", "[dasscm shell]\n\n";
    460461
    461     exec("bash") or die "failed to start new shell";
     462    my $shell = $SHELL || "bash";
     463    exec($shell) or die "failed to start new shell";
    462464}
    463465
     
    466468    check_parameter( @_, 1 );
    467469    check_env();
     470
     471    # don't do repository creation (svn mkdir) here,
     472    # because then their must be a lot of prior checks
    468473
    469474    # update complete repository
     
    793798        $command = "ls";
    794799        ls(@ARGV);
    795     } elsif (m/up/i) {
     800    } elsif ( (m/update/i) || (m/up/i) ) {
    796801        $command = "update";
    797802        update(@ARGV);
     
    808813        $command = "diff";
    809814        diff(@ARGV);
    810     } elsif (m/status/i) {
     815    } elsif ( (m/status/i) || (m/st/i) ) {
    811816        $command = "status";
    812817        status(@ARGV);
Note: See TracChangeset for help on using the changeset viewer.