- Timestamp:
- Feb 2, 2008, 12:39:01 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component.sh
r15 r76 7 7 TMP_DIR="/tmp/$SOURCE_FILE" 8 8 9 TYPE=("vbe" "vst"); 10 9 11 #-----[ usage ]------------------------------------------------------ 10 12 # input : - … … 17 19 echo " - <directory> : localisation of component"; 18 20 echo " - <name> : name of component"; 21 echo " - <type> : type of component : ${TYPE[@]}"; 19 22 echo ""; 20 23 echo " Note : This script must be execute in directory's script"; … … 49 52 fi; 50 53 51 if test $# -ne 2; then 54 if test $# -ne 3; then 55 usage; 56 fi; 57 58 find=0; 59 for type in ${TYPE[@]}; do 60 if test "$3" = "$type"; then 61 find=1; 62 SOURCE_DIR=$SOURCE_DIR"_"$type; 63 fi; 64 done; 65 66 if test $find -eq 0; then 52 67 usage; 53 68 fi; … … 293 308 rmdir $TMP_DIR 294 309 295 296 310 #translation 297 311 rename_directory "$1/$2" $SOURCE_FILE $2;
Note: See TracChangeset
for help on using the changeset viewer.