Changeset 78 for trunk/IPs/systemC/processor/Morpheo/Script/lock.sh
- Timestamp:
- Mar 27, 2008, 11:04:49 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Script/lock.sh
r2 r78 4 4 function usage () 5 5 { 6 echo "Usage : ${0} file"; 7 echo "lock file, you can see the lock at \"~/.$(basename file).lock\"" 6 echo "Usage : ${0} file"; 7 echo "Arguments : "; 8 echo ' * file : you can see the lock at "${MORPHEO_HOME}/lock/$(basename file).lock"'; 9 echo "Notes :"; 10 echo " * Morpheo's environnement must be positionned."; 11 8 12 exit; 9 13 } … … 18 22 function main () 19 23 { 20 if test ${#} -ne 1 -o ! -f ${1}; then 24 LOCK_DIRECTORY="${MORPHEO_HOME}/lock"; 25 26 if test ${#} -ne 1 -o -z ${MORPHEO_HOME} -o ! -d ${LOCK_DIRECTORY}; then 21 27 usage ${*}; 22 28 fi; 23 29 24 lock "${ HOME}/.$(basename ${1}).lock"30 lock "${LOCK_DIRECTORY}/$(basename ${1}).lock" 25 31 } 26 32
Note: See TracChangeset
for help on using the changeset viewer.