Changeset 3586

Show
Ignore:
Timestamp:
03/04/09 07:10:30 (12 months ago)
Author:
kris
Message:

Improved the "runports.sh" script, and added some kmenu icons for user convience, now they can click an icon, to drop into a shell and run ports :)

Location:
pcbsd/trunk/system-overlay/PCBSD
Files:
3 added
1 modified

Legend:

Unmodified
Added
Removed
  • pcbsd/trunk/system-overlay/PCBSD/Scripts/runports.sh

    r3566 r3586  
    11#!/bin/tcsh 
    2 # Helper script which can be sourced when we need to work with the  
     2# Helper script which can be sourced when we need to work with the 
    33# the default FreeBSD Ports tree 
    44############################################################################ 
    55 
    6 setenv PATH "/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/local/kde4/bin" 
     6setenv PATH "/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/local/kde4/bin"                                                        
    77 
    88unsetenv LD_ELF_HINTS_PATH 
    99 
    1010alias h         history 25 
    11 alias j         jobs -l 
    12 alias la        ls -a 
    13 alias lf        ls -FA 
    14 alias ll        ls -lA 
    15 alias ls        ls -G 
     11alias j         jobs -l    
     12alias la        ls -a      
     13alias lf        ls -FA     
     14alias ll        ls -lA     
     15alias ls        ls -G      
    1616 
    1717# A righteous umask 
    18 umask 22 
     18umask 22            
    1919 
    2020setenv  CLICOLOR true 
    21 setenv  EDITOR  vi 
    22 setenv  PAGER   more 
     21setenv  EDITOR  vi    
     22setenv  PAGER   more  
    2323setenv  BLOCKSIZE       K 
    2424 
    2525 
    26 clear 
    27 echo "You may now run 'make' or use programs in the FreeBSD Ports tree" 
    28  
    29 /bin/tcsh -f 
     26clear    
     27setenv USER `whoami`  
     28if ( $USER != "root" ) then 
     29  echo "Running as user $USER. You may now run programs in the FreeBSD Ports tree" 
     30else 
     31  echo "Running as 'root'. You may now run 'make' n the FreeBSD Ports tree"   
     32endif