Last change
on this file since 82 was
82,
checked in by rosiere, 16 years ago
|
- support locale (now must "just" translate)
- update all component with new test format
- update all component with usage
- New component : decod queue and prediction_unit
|
-
Property svn:executable set to
*
|
File size:
1.7 KB
|
Rev | Line | |
---|
[82] | 1 | #!/bin/sh |
---|
| 2 | #----------------------------------------------------------- |
---|
| 3 | # $Id$ |
---|
| 4 | #----------------------------------------------------------- |
---|
| 5 | |
---|
| 6 | file_sed_src="${MORPHEO_TOPLEVEL}/IPs/systemC/processor/Morpheo/Behavioural/include/Version.h.sed"; |
---|
| 7 | file_sed_dest="${MORPHEO_TOPLEVEL}/IPs/systemC/processor/Morpheo/Behavioural/include/Version.h"; |
---|
| 8 | |
---|
| 9 | #-----[ usage ]--------------------------------------------- |
---|
| 10 | function usage () |
---|
| 11 | { |
---|
| 12 | echo "Usage : ${0} action"; |
---|
| 13 | echo "Arguments : "; |
---|
| 14 | echo " * action"; |
---|
| 15 | echo " * add : add all file unpresent in project and set proprity"; |
---|
| 16 | echo " * commit : update revision number and commit"; |
---|
| 17 | echo " * help : print this message"; |
---|
| 18 | echo "Note :"; |
---|
| 19 | echo " * Morpheo's environnement must be positionned."; |
---|
| 20 | exit; |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | #-----[ main ]---------------------------------------------- |
---|
| 24 | function main () |
---|
| 25 | { |
---|
| 26 | # Test operand |
---|
| 27 | if test ${#} -ne 1; then |
---|
| 28 | usage ${*}; |
---|
| 29 | fi; |
---|
| 30 | |
---|
| 31 | if test -z ${MORPHEO_TOPLEVEL}; then |
---|
| 32 | usage ${*}; |
---|
| 33 | fi; |
---|
| 34 | |
---|
| 35 | export LC_ALL=C; |
---|
| 36 | export EDITOR="emacs"; |
---|
| 37 | |
---|
| 38 | pwd=${PWD}; |
---|
| 39 | |
---|
| 40 | case ${1} in |
---|
| 41 | "commit") |
---|
| 42 | cd ${MORPHEO_TOPLEVEL}; |
---|
| 43 | |
---|
| 44 | # +1 because is the next revision |
---|
| 45 | revision=$(($(export LC_ALL=C; svnversion | tr -d [:alpha:] | cut -d : -f 2) + 1)); |
---|
| 46 | |
---|
| 47 | cat ${file_sed_src} |sed s/"@REVISION"/"${revision}"/ &> ${file_sed_dest}; |
---|
| 48 | |
---|
| 49 | svn commit; |
---|
| 50 | |
---|
| 51 | cd ${pwd}; |
---|
| 52 | ;; |
---|
| 53 | |
---|
| 54 | "add") |
---|
| 55 | cd ${MORPHEO_TOPLEVEL}; |
---|
| 56 | |
---|
| 57 | for i in $(svn status | grep '?'); do |
---|
| 58 | if test -e ${i}; then |
---|
| 59 | svn add ${i}; |
---|
| 60 | svn propset svn:keywords "Id" ${i} -R |
---|
| 61 | fi; |
---|
| 62 | done; |
---|
| 63 | |
---|
| 64 | cd ${pwd}; |
---|
| 65 | ;; |
---|
| 66 | "help") |
---|
| 67 | usage ${*}; |
---|
| 68 | ;; |
---|
| 69 | *) |
---|
| 70 | usage ${*}; |
---|
| 71 | esac |
---|
| 72 | } |
---|
| 73 | |
---|
| 74 | #-----[ Body ]---------------------------------------------- |
---|
| 75 | main ${*} |
---|
Note: See
TracBrowser
for help on using the repository browser.