Changeset 18904

Show
Ignore:
Timestamp:
08.04.2009 11:07:29 (11 years ago)
Author:
oranfry
Message:

added a -cmd option to the (unix) release-kits, stopped XXrk.out from being created in sim mode, had XXrk.out being create in the release dir not just the current dir (sometimes they differ)

Location:
release-kits
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • release-kits/lirk2/bin/lirk2

    r18496 r18904  
    1 rk_name="lirk2" 
    2 rk_fullname="Linux Release Kit for Greenstone2" 
    3 RK_HOME=$LIRK2_HOME 
    4 source $LIRK2_HOME/linux/rk 
    5  
    6 echo "O---------------------------------------O" 
    7 echo "|                                       |" 
    8 echo "|   LiRK2                               |" 
    9 echo "|   Linux Release Kit for Greenstone2   |" 
    10 echo "|                                       |" 
    11 echo "O---------------------------------------O" 
    12  
    13 $toexec 2>&1 | tee lirk2.out 
     1#!/bin/bash 
     2export rk_name="lirk2" 
     3export rk_fullname="Linux Release Kit for Greenstone2" 
     4export RK_HOME=$LIRK2_HOME 
     5$LIRK2_HOME/linux/rk $* 
  • release-kits/lirk3/bin/lirk3

    r18496 r18904  
    1 rk_name="lirk3" 
    2 rk_fullname="Linux Release Kit for Greenstone3" 
    3 RK_HOME=$LIRK3_HOME 
    4 source $LIRK3_HOME/linux/rk 
    5  
    6 echo "O---------------------------------------O" 
    7 echo "|                                       |" 
    8 echo "|   LiRK3                               |" 
    9 echo "|   Linux Release Kit for Greenstone3   |" 
    10 echo "|                                       |" 
    11 echo "O---------------------------------------O" 
    12  
    13 $toexec 2>&1 | tee lirk3.out 
     1#!/bin/bash 
     2export rk_name="lirk3" 
     3export rk_fullname="Linux Release Kit for Greenstone3" 
     4export RK_HOME=$LIRK3_HOME 
     5$LIRK3_HOME/linux/rk $* 
  • release-kits/mark2/bin/mark2

    r18496 r18904  
    1 rk_name="mark2" 
    2 rk_fullname="Mac Release Kit for Greenstone2" 
    3 RK_HOME=$MARK2_HOME 
    4 source $MARK2_HOME/linux/rk 
    5  
    6 echo "O---------------------------------------O" 
    7 echo "|                                       |" 
    8 echo "|   Mark2                               |" 
    9 echo "|   Mac Release Kit for Greenstone2     |" 
    10 echo "|                                       |" 
    11 echo "O---------------------------------------O" 
    12  
    13 $toexec 2>&1 | tee mark2.out 
    14  
     1#!/bin/bash 
     2export rk_name="mark2" 
     3export rk_fullname="Mac Release Kit for Greenstone2" 
     4export RK_HOME=$MARK2_HOME 
     5$MARK2_HOME/linux/rk $* 
  • release-kits/mark3/bin/mark3

    r18496 r18904  
    1 rk_name="mark3" 
    2 rk_fullname="Mac Release Kit for Greenstone3" 
    3 RK_HOME=$MARK3_HOME 
    4 source $MARK3_HOME/linux/rk 
    5  
    6 echo "O---------------------------------------O" 
    7 echo "|                                       |" 
    8 echo "|   Mark3                               |" 
    9 echo "|   Mac Release Kit for Greenstone3     |" 
    10 echo "|                                       |" 
    11 echo "O---------------------------------------O" 
    12  
    13 $toexec 2>&1 | tee mark3.out 
    14  
     1#!/bin/bash 
     2export rk_name="mark3" 
     3export rk_fullname="Mac Release Kit for Greenstone3" 
     4export RK_HOME=$MARK3_HOME 
     5$MARK3_HOME/linux/rk $* 
  • release-kits/shared/linux/rk

    r17996 r18904  
     1#!/bin/bash 
     2function show_title() { 
     3    echo    "O---------------------------------------------O" 
     4    echo    "|                                             |" 
     5    echo -n "|   $rk_name "; 
     6    for a in `seq 0 $(( 40 - ${#rk_name} ))`; do echo -n " "; done; echo "|" 
     7    echo -n "|   $rk_fullname "; 
     8    for a in `seq 0 $(( 40 - ${#rk_fullname} ))`; do echo -n " "; done; echo "|" 
     9    echo    "|                                             |" 
     10    echo    "O---------------------------------------------O" 
     11} 
     12 
    113#pre checks 
    2  
    314if [ "$rk_name" == "" ]; then 
    415    echo "rk_name not set"; 
     
    3243    echo "  -cp" 
    3344    echo "      show the classpath being used by $rk_name" 
     45    echo 
     46    echo "  -cmd" 
     47    echo "      show the ant command being used by $rk_name" 
    3448 
    3549} 
     
    7791        echo $CLASSPATH 
    7892        exit 
     93    elif [ "$1" == "-cmd" ]; then 
     94        show_cmd=true 
    7995    elif [ "$1" == "-sim" ]; then 
    8096        toexec="$toexec $1" 
     
    87103done 
    88104 
     105#execute (or show the command to be executed) 
     106if [ "$show_cmd" == "true" ]; then 
     107    echo $toexec 
     108elif [ "$sim_mode" == "on" ]; then 
     109    show_title 
     110    $toexec 
     111else 
     112    show_title | tee ${rk_name}.out 
     113    $toexec 2>&1 | tee -a ${rk_name}.out 
     114fi 
     115 
    89116if [ "$RKOLDPWD" != "" ]; then 
    90117    cd $RKOLDPWD 
    91118fi 
    92      
     119