Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Script/version.sh
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Script/version.sh
r85 r88 7 7 file_sed_src="${MORPHEO_TOPLEVEL}/IPs/systemC/processor/Morpheo/Behavioural/include/Version.h.sed"; 8 8 file_sed_dest="${MORPHEO_TOPLEVEL}/IPs/systemC/processor/Morpheo/Behavioural/include/Version.h"; 9 file_sed_script="/tmp/file_sed_script"; 9 10 10 11 #-----[ usage ]--------------------------------------------- … … 47 48 # +1 because is the next revision 48 49 revision=$(($(export LC_ALL=C; svnversion | tr -d [:alpha:] | cut -d : -f 2) + 1)); 49 50 cat ${file_sed_src} |sed s/"@REVISION"/"${revision}"/ &> ${file_sed_dest}; 51 50 date_day=$(date +%d); 51 date_month=$(date +%m); 52 date_year=$(date +%Y); 53 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 cat ${file_sed_src} |sed -f ${file_sed_script} &> ${file_sed_dest}; 60 61 rm ${file_sed_script}; 62 52 63 svn commit; 53 64
Note: See TracChangeset
for help on using the changeset viewer.