Ignore:
Timestamp:
Dec 10, 2008, 7:31:39 PM (16 years ago)
Author:
rosiere
Message:

Almost complete design
with Test and test platform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Script/version.sh

    r85 r88  
    77file_sed_src="${MORPHEO_TOPLEVEL}/IPs/systemC/processor/Morpheo/Behavioural/include/Version.h.sed";
    88file_sed_dest="${MORPHEO_TOPLEVEL}/IPs/systemC/processor/Morpheo/Behavioural/include/Version.h";
     9file_sed_script="/tmp/file_sed_script";
    910
    1011#-----[ usage ]---------------------------------------------
     
    4748            # +1 because is the next revision
    4849            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           
    5263            svn commit;
    5364
Note: See TracChangeset for help on using the changeset viewer.