Ignore:
Timestamp:
Feb 16, 2010, 1:35:48 PM (15 years ago)
Author:
rosiere
Message:

Various modif (add test, and vhdl)

File:
1 edited

Legend:

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

    r90 r137  
    44# $Id$
    55#-----------------------------------------------------------
    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";
     6file_version="${MORPHEO_TOPLEVEL}/Version";
    107
    118#-----[ usage ]---------------------------------------------
     
    4744   
    4845            # +1 because is the next revision
     46            major_version=0;
     47            minor_version=2;
     48            codename="Castor";
     49
    4950            revision=$(($(export LC_ALL=C; svnversion  | tr -d [:alpha:] | cut -d : -f 2) + 1));
    5051            date_day=$(date +%d);
     
    5253            date_year=$(date +%Y);
    5354           
    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           
    6357            svn commit;
    6458
Note: See TracChangeset for help on using the changeset viewer.