Mercurial > hg > octave-kai > gnulib-hg
comparison gnulib-tool @ 4197:3ccc6d0d52bb
Add a Maintainer.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 20 Jan 2003 10:02:37 +0000 |
parents | ace040a2b821 |
children | b021702e6680 |
comparison
equal
deleted
inserted
replaced
4196:13207adc1bc9 | 4197:3ccc6d0d52bb |
---|---|
20 # This program is meant for authors or maintainers which want to import | 20 # This program is meant for authors or maintainers which want to import |
21 # modules from gnulib into their packages. | 21 # modules from gnulib into their packages. |
22 | 22 |
23 progname=$0 | 23 progname=$0 |
24 package=gnulib | 24 package=gnulib |
25 cvsdatestamp='$Date: 2003-01-13 21:57:21 $' | 25 cvsdatestamp='$Date: 2003-01-20 10:02:37 $' |
26 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'` | 26 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'` |
27 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'` | 27 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'` |
28 | 28 |
29 # You can set AUTOCONFPATH to empty if autoconf 2.57 is already in your PATH. | 29 # You can set AUTOCONFPATH to empty if autoconf 2.57 is already in your PATH. |
30 AUTOCONFPATH= | 30 AUTOCONFPATH= |
55 gnulib-tool --extract-filelist module | 55 gnulib-tool --extract-filelist module |
56 gnulib-tool --extract-dependencies module | 56 gnulib-tool --extract-dependencies module |
57 gnulib-tool --extract-autoconf-snippet module | 57 gnulib-tool --extract-autoconf-snippet module |
58 gnulib-tool --extract-automake-snippet module | 58 gnulib-tool --extract-automake-snippet module |
59 gnulib-tool --extract-include-directive module | 59 gnulib-tool --extract-include-directive module |
60 gnulib-tool --extract-maintainer module | |
60 | 61 |
61 Operation modes: | 62 Operation modes: |
62 --list print the available module names | 63 --list print the available module names |
63 --import import the given modules into the current package | 64 --import import the given modules into the current package |
64 --create-testdir create a scratch package with the given modules | 65 --create-testdir create a scratch package with the given modules |
65 --create-megatestdir create a mega scratch package with the given modules | 66 --create-megatestdir create a mega scratch package with the given modules |
66 one by one and all together | 67 one by one and all together |
67 --test test the combination of the given modules | 68 --test test the combination of the given modules |
68 (recommended to use CC="gcc -Wall -Werror" here) | 69 (recommended to use CC=\"gcc -Wall\" here) |
69 --megatest test the given modules one by one and all together | 70 --megatest test the given modules one by one and all together |
70 (recommended to use CC="gcc -Wall -Werror" here) | 71 (recommended to use CC=\"gcc -Wall\" here) |
71 --extract-description extract the description | 72 --extract-description extract the description |
72 --extract-filelist extract the list of files | 73 --extract-filelist extract the list of files |
73 --extract-dependencies extract the dependencies | 74 --extract-dependencies extract the dependencies |
74 --extract-autoconf-snippet extract the snippet for configure.ac | 75 --extract-autoconf-snippet extract the snippet for configure.ac |
75 --extract-automake-snippet extract the snippet for lib/Makefile.am | 76 --extract-automake-snippet extract the snippet for lib/Makefile.am |
76 --extract-include-directive extract the #include directive | 77 --extract-include-directive extract the #include directive |
78 --extract-maintainer report the maintainer(s) inside gnulib | |
77 | 79 |
78 Options: | 80 Options: |
79 --dir=DIRECTORY specify the target directory | 81 --dir=DIRECTORY specify the target directory |
80 --lib=libRARY specify the library name | 82 --lib=libRARY specify the library name |
81 --no-changelog don't update or create ChangeLog files | 83 --no-changelog don't update or create ChangeLog files |
277 { | 279 { |
278 sed -n -e "/^Include$sed_extract_prog" < "$gnulib_dir/modules/$1" | \ | 280 sed -n -e "/^Include$sed_extract_prog" < "$gnulib_dir/modules/$1" | \ |
279 sed -e 's/^\(["<]\)/#include \1/' | 281 sed -e 's/^\(["<]\)/#include \1/' |
280 } | 282 } |
281 | 283 |
284 # func_get_maintainer module | |
285 func_get_maintainer () | |
286 { | |
287 sed -n -e "/^Maintainer$sed_extract_prog" < "$gnulib_dir/modules/$1" | |
288 } | |
289 | |
282 # func_create_testdir testdir modules | 290 # func_create_testdir testdir modules |
283 func_create_testdir () | 291 func_create_testdir () |
284 { | 292 { |
285 testdir="$1" | 293 testdir="$1" |
286 modules="$2" | 294 modules="$2" |
634 func_get_include_directive "$module" | 642 func_get_include_directive "$module" |
635 fi | 643 fi |
636 done | 644 done |
637 ;; | 645 ;; |
638 | 646 |
647 extract-maintainer ) | |
648 for module | |
649 do | |
650 func_verify_module | |
651 if test -n "$module"; then | |
652 func_get_maintainer "$module" | |
653 fi | |
654 done | |
655 ;; | |
656 | |
639 * ) | 657 * ) |
640 func_fatal_error "unknown operation mode --$mode" ;; | 658 func_fatal_error "unknown operation mode --$mode" ;; |
641 esac | 659 esac |
642 | 660 |
643 exit 0 | 661 exit 0 |