Ignore:
Timestamp:
May 12, 2010, 7:34:01 PM (14 years ago)
Author:
rosiere
Message:

1) add counters_t type for interface
2) fix in check load in load_store_unit
3) add parameters (but not yet implemented)
4) change environment and add script (distcc_env.sh ...)
5) add warning if an unser change rename flag with l.mtspr instruction
6) ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Script/lock.sh

    r85 r138  
    55#-----------------------------------------------------------
    66
    7 #-----[ usage ]---------------------------------------------
    8 function usage ()
     7#-----[ lock_usage ]----------------------------------------
     8function lock_usage ()
    99{
    1010    echo "Usage     : ${0} file";
    11     echo "Arguments : ";
    12     echo ' * file : you can see the lock at "${MORPHEO_HOME}/lock/$(basename file).lock"';
    13     echo "Notes     :";
    14     echo " * Morpheo's environnement must be positionned.";
    1511
    1612    exit;
     
    2016function lock ()
    2117{
     18    if test ${#} -ne 1; then
     19        lock_usage ${*};
     20    fi;
     21
    2222    lockfile -1 ${1};
    2323}
    2424
    25 #-----[ main ]----------------------------------------------
    26 function main ()
    27 {
    28     LOCK_DIRECTORY="${MORPHEO_HOME}/lock";
    29 
    30     if test ${#} -ne 1 -o -z ${MORPHEO_HOME} -o ! -d ${LOCK_DIRECTORY}; then
    31         usage ${*};
    32     fi;
    33 
    34     lock "${LOCK_DIRECTORY}/$(basename ${1}).lock"
    35 }
    36 
    3725#-----[ Corps ]---------------------------------------------
    38 main ${*}
     26lock ${*}
Note: See TracChangeset for help on using the changeset viewer.