Changeset 98806540b0efeca18c9b849aef06814cf127d99c
- Timestamp:
- 03/10/03 20:30:35
(5 years ago)
- Author:
- Sam Hocevar <sam@videolan.org>
- git-committer:
- Sam Hocevar <sam@videolan.org> 1047324635 +0000
- git-parent:
[e73768a8330dab5a8af4e93836c41d0777819d6b]
- git-author:
- Sam Hocevar <sam@videolan.org> 1047324635 +0000
- Message:
- ./toolbox: added --update-changelog flag.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r171d858 |
r9880654 |
|
| 2 | 2 | |
|---|
| 3 | 3 | ## toolbox for the VLC media player |
|---|
| 4 | | ## $Id: toolbox,v 1.11 2003/03/03 16:49:14 gbazin Exp $ |
|---|
| | 4 | ## $Id: toolbox,v 1.12 2003/03/10 19:30:35 sam Exp $ |
|---|
| 5 | 5 | ## |
|---|
| 6 | 6 | ## Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 21 | 21 | cat << EOF |
|---|
| 22 | 22 | recognized flags are: |
|---|
| 23 | | --update-vc update Microsoft Visual Studio files |
|---|
| 24 | | --update-po update translation files |
|---|
| 25 | | --update-glade generate and fix Glade code |
|---|
| | 23 | --update-changelog update the CVS changelog |
|---|
| | 24 | --update-vc update Microsoft Visual Studio files |
|---|
| | 25 | --update-po update translation files |
|---|
| | 26 | --update-glade generate and fix Glade code |
|---|
| 26 | 27 | EOF |
|---|
| 27 | 28 | exit 1 |
|---|
| … | … | |
| 31 | 32 | ### argument check |
|---|
| 32 | 33 | ### |
|---|
| 33 | | do_help=yes |
|---|
| | 34 | do_help=no |
|---|
| | 35 | do_changelog=no |
|---|
| 34 | 36 | do_po=no |
|---|
| 35 | 37 | do_vc=no |
|---|
| 36 | 38 | do_glade=no |
|---|
| | 39 | |
|---|
| | 40 | if test "$1" = "" |
|---|
| | 41 | then |
|---|
| | 42 | do_help=yes |
|---|
| | 43 | fi |
|---|
| | 44 | |
|---|
| 37 | 45 | while test $# -gt 0; do |
|---|
| 38 | 46 | case "$1" in |
|---|
| | 47 | --update-changelog) |
|---|
| | 48 | do_changelog=yes |
|---|
| | 49 | ;; |
|---|
| 39 | 50 | --update-vc) |
|---|
| 40 | | do_help=no |
|---|
| 41 | 51 | do_vc=yes |
|---|
| 42 | 52 | ;; |
|---|
| 43 | 53 | --update-po) |
|---|
| 44 | | do_help=no |
|---|
| 45 | 54 | do_po=yes |
|---|
| 46 | 55 | ;; |
|---|
| 47 | 56 | --update-glade|--fix-glade) |
|---|
| 48 | | do_help=no |
|---|
| 49 | 57 | do_glade=yes |
|---|
| | 58 | ;; |
|---|
| | 59 | --help) |
|---|
| | 60 | do_help=yes |
|---|
| 50 | 61 | ;; |
|---|
| 51 | 62 | *) |
|---|
| 52 | 63 | echo "$0: unknown option $1" |
|---|
| 53 | 64 | do_help=yes |
|---|
| 54 | | help |
|---|
| 55 | 65 | ;; |
|---|
| 56 | 66 | esac |
|---|
| … | … | |
| 64 | 74 | then |
|---|
| 65 | 75 | help |
|---|
| | 76 | fi |
|---|
| | 77 | |
|---|
| | 78 | ## |
|---|
| | 79 | ## Update the CVS changelog |
|---|
| | 80 | ## |
|---|
| | 81 | if test "$do_changelog" = "yes" |
|---|
| | 82 | then |
|---|
| | 83 | cvs2cl --help >/dev/null 2>&1 || exit 1 |
|---|
| | 84 | cvs2cl --hide-filenames --no-wrap -w --stdout | \ |
|---|
| | 85 | sed -e 's/^[^0-9]/ /' -e 's/^ *$//' | \ |
|---|
| | 86 | uniq >| ChangeLog |
|---|
| 66 | 87 | fi |
|---|
| 67 | 88 | |
|---|