source: trunk/IPs/systemC/processor/Morpheo/Script/unlock.sh @ 2

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

File size: 577 bytes
Line 
1#!/bin/sh
2
3#-----[ usage ]---------------------------------------------
4function usage ()
5{
6    echo "Usage   : ${0} file";
7    echo "unlock file, you can see the lock at \"~/.$(basename file).lock\""
8    exit;
9}
10
11#-----[ unlock ]--------------------------------------------
12function unlock ()
13{
14    rm -f ${1};
15}
16
17#-----[ main ]----------------------------------------------
18function main ()
19{
20    if test ${#} -ne 1 -o ! -f ${1}; then
21        usage ${*};
22    fi;
23
24    unlock "${HOME}/.$(basename ${1}).lock"
25}
26
27#-----[ Corps ]---------------------------------------------
28main ${*}
Note: See TracBrowser for help on using the repository browser.