source: trunk/IPs/systemC/processor/Morpheo/Script/lock.sh

Last change on this file was 138, checked in by rosiere, 14 years ago

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) ...

  • Property svn:keywords set to Id
File size: 509 bytes
Line 
1#!/bin/bash
2
3#-----------------------------------------------------------
4# $Id: lock.sh 138 2010-05-12 17:34:01Z rosiere $
5#-----------------------------------------------------------
6
7#-----[ lock_usage ]----------------------------------------
8function lock_usage ()
9{
10    echo "Usage     : ${0} file";
11
12    exit;
13}
14
15#-----[ lock ]----------------------------------------------
16function lock ()
17{
18    if test ${#} -ne 1; then
19        lock_usage ${*};
20    fi;
21
22    lockfile -1 ${1};
23}
24
25#-----[ Corps ]---------------------------------------------
26lock ${*}
Note: See TracBrowser for help on using the repository browser.