Changeset 325:0fbbb4bc42dd in lemon-1.2
- Timestamp:
- 10/20/08 20:03:14 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/unify-sources.sh
r324 r325 66 66 function update_done() { 67 67 echo $CHANGED_FILES out of $TOTAL_FILES files has been changed. 68 echo $WARNED_FILES out of $TOTAL_FILES files has been warned.68 echo $WARNED_FILES out of $TOTAL_FILES files triggered warnings. 69 69 } 70 70 … … 108 108 function check_done() { 109 109 echo $FAILED_FILES out of $TOTAL_FILES files has been failed. 110 echo $WARNED_FILES out of $TOTAL_FILES files has been warned.110 echo $WARNED_FILES out of $TOTAL_FILES files triggered warnings. 111 111 112 112 if [ $FAILED_FILES -gt 0 ] … … 117 117 if [ "$WARNING" == 'INTERACTIVE' ] 118 118 then 119 echo -n "A ssume as normal behaviour? (yes/no) "119 echo -n "Are the files with warnings acceptable? (yes/no) " 120 120 while read answer 121 121 do … … 127 127 return 1 128 128 fi 129 echo -n "A ssume as normal behaviour? (yes/no) "129 echo -n "Are the files with warnings acceptable? (yes/no) " 130 130 done 131 131 elif [ "$WARNING" == 'WERROR' ] … … 258 258 Options: 259 259 --dry-run|-n 260 Check the givenfiles, but do not modify them.260 Check the files, but do not modify them. 261 261 --interactive|-i 262 If --dry-run is specified and files are warned then a message is 263 prompted whether the warnings should be turned to errors. 262 If --dry-run is specified and the checker emits warnings, 263 then the user is asked if the warnings should be considered 264 errors. 264 265 --werror|-w 265 If --dry-run is specified and the warnings are turnedto errors.266 Make all warnings into errors. 266 267 --all|-a 267 268 All files in the repository will be checked. 268 269 --modified|-m 269 Check only the modified source files. This option is proper to 270 use before a commit. E.g. all files which are modified or added 271 into the repository will be updated. 270 Check only the modified (and new) source files. This option is 271 useful to check the modification before making a commit. 272 272 --changed|-c 273 273 Check only the changed source files compared to the parent(s) of 274 the current hg node. This option is proper to use as hg hook 275 script. E.g. to check all your commited source files with this 276 script add the following section to the appropriate .hg/hgrc 277 file. 274 the current hg node. This option is useful as hg hook script. 275 To automatically check all your changes before making a commit, 276 add the following section to the appropriate .hg/hgrc file. 278 277 279 278 [hooks]
Note: See TracChangeset
for help on using the changeset viewer.