Changeset 138 for trunk/IPs/systemC/processor/Morpheo/Script/version.sh
- Timestamp:
- May 12, 2010, 7:34:01 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Script/version.sh
r137 r138 4 4 # $Id$ 5 5 #----------------------------------------------------------- 6 file_version="${MORPHEO_TOPLEVEL}/Version";7 8 6 #-----[ usage ]--------------------------------------------- 9 7 function usage () 10 8 { 11 echo "Usage : ${0} action"; 12 echo "Arguments : "; 13 echo " * action"; 14 echo " * add : add all file unpresent in project and set proprity"; 15 echo " * commit : update revision number and commit"; 16 echo " * status : print only locally modified items"; 17 echo " * status_new : print only locally new items"; 18 echo " * help : print this message"; 19 echo "Note :"; 9 echo "Usage : ${0} action"; 10 echo "Arguments : "; 11 echo " * action"; 12 echo " * add : add all file unpresent in project and set proprity"; 13 echo " * commit : update revision number and commit"; 14 echo " * status : print only locally modified items"; 15 echo " * status_new : print only locally new items"; 16 echo " * status_delete : print only locally new items"; 17 echo " * help : print this message"; 18 echo "Note :"; 20 19 echo " * Morpheo's environnement must be positionned."; 21 20 exit; … … 34 33 fi; 35 34 35 local file_version="${MORPHEO_TOPLEVEL}/Version"; 36 local major_version="0"; 37 local minor_version="2"; 38 local codename="Castor"; 39 36 40 export LC_ALL=C; 37 41 export EDITOR="emacs"; 38 42 39 pwd=${PWD};43 local pwd=${PWD}; 40 44 41 45 case ${1} in … … 44 48 45 49 # +1 because is the next revision 46 major_version=0; 47 minor_version=2; 48 codename="Castor"; 49 50 revision=$(($(export LC_ALL=C; svnversion | tr -d [:alpha:] | cut -d : -f 2) + 1)); 51 date_day=$(date +%d); 52 date_month=$(date +%m); 53 date_year=$(date +%Y); 50 local revision=$(($(export LC_ALL=C; svnversion | tr -d [:alpha:] | cut -d : -f 2) + 1)); 51 local date_day=$(date +%d); 52 local date_month=$(date +%m); 53 local date_year=$(date +%Y); 54 54 55 55 echo "${major_version} ${minor_version} ${revision} ${codename} ${date_day} ${date_month} ${date_year}" > ${file_version}; … … 88 88 cd ${pwd}; 89 89 ;; 90 91 "status_delete") 92 cd ${MORPHEO_TOPLEVEL}; 93 94 svn status | grep '!'; 95 96 cd ${pwd}; 97 ;; 90 98 91 99 "help")
Note: See TracChangeset
for help on using the changeset viewer.