Changeset 137 for trunk/IPs/systemC/processor/Morpheo/Script/version.sh
- Timestamp:
- Feb 16, 2010, 1:35:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Script/version.sh
r90 r137 4 4 # $Id$ 5 5 #----------------------------------------------------------- 6 7 file_sed_src="${MORPHEO_TOPLEVEL}/IPs/systemC/processor/Morpheo/Behavioural/include/Version.h.sed"; 8 file_sed_dest="${MORPHEO_TOPLEVEL}/IPs/systemC/processor/Morpheo/Behavioural/include/Version.h"; 9 file_sed_script="/tmp/file_sed_script"; 6 file_version="${MORPHEO_TOPLEVEL}/Version"; 10 7 11 8 #-----[ usage ]--------------------------------------------- … … 47 44 48 45 # +1 because is the next revision 46 major_version=0; 47 minor_version=2; 48 codename="Castor"; 49 49 50 revision=$(($(export LC_ALL=C; svnversion | tr -d [:alpha:] | cut -d : -f 2) + 1)); 50 51 date_day=$(date +%d); … … 52 53 date_year=$(date +%Y); 53 54 54 echo "s/\"@REVISION\"/\"${revision}\"/" > ${file_sed_script}; 55 echo "s/\"@DATE_DAY\"/\"${date_day}\"/" >> ${file_sed_script}; 56 echo "s/\"@DATE_MONTH\"/\"${date_month}\"/" >> ${file_sed_script}; 57 echo "s/\"@DATE_YEAR\"/\"${date_year}\"/" >> ${file_sed_script}; 58 59 sed -f ${file_sed_script} ${file_sed_src} &> ${file_sed_dest}; 60 61 rm ${file_sed_script}; 62 55 echo "${major_version} ${minor_version} ${revision} ${codename} ${date_day} ${date_month} ${date_year}" > ${file_version}; 56 63 57 svn commit; 64 58
Note: See TracChangeset
for help on using the changeset viewer.