]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
accommodate the new --preserve-dup-deps option
authorAlexandre Oliva <aoliva@redhat.com>
Sat, 2 Mar 2002 20:59:39 +0000 (20:59 +0000)
committerBruce Korb <bkorb@gnu.org>
Sat, 2 Mar 2002 20:59:39 +0000 (20:59 +0000)
exe/ltopts.def
exe/ltstr.tpl

index c70c05db4a7decaff7fd11224ad6f637f35ac586..046ec7ab7a0ce56baf62b7a7a1cfbf65a386bc60 100644 (file)
@@ -29,7 +29,8 @@ one of the following values:
 \tinstall    install libraries or executables
 \tlink       create a library or an executable
 \trelink     (synonym for `link')
-\tuninstall  remove libraries from an installed directory";
+\tuninstall  remove libraries from an installed directory
+\techo       the program behaves as a reimplementation of echo";
 
 
 include =
@@ -81,13 +82,6 @@ flag = {
     doc       = "This option is equivalent to `--mode=finish'";
 };
 
-flag = {
-    name      = "preserve_dup_deps";
-    descrip   = "normally, duplicate libs are removed";
-    doc       = "Sometimes in some circumstances it is necessary to search\n"
-                "a library multiple times.  By default, we do not.";
-};
-
 flag = {
     name      = "fallback_echo";
     flag_code = '    SET_OPT_MODE("echo");';
@@ -182,7 +176,7 @@ flag = {
  * * * * * * * * * * * * * * * * * * * * * * * * * *
  */
 flag = {
-    name        = doc_link;
+    name        = doc_comp_and_link;
     documentation;
     descrip     = 'compile and link mode options:';
 };
@@ -207,13 +201,29 @@ flag = {
     "";
 };
 
+/*
+ * * * * * * * * * * * * * * * * * * * * * * * * * *
+ */
+flag = {
+    name        = doc_link;
+    documentation;
+    descrip     = 'link only mode options:';
+};
+
+flag = {
+    name      = "preserve_dup_deps";
+    descrip   = " -- normally, duplicate libs are removed";
+    doc       = "Sometimes in some circumstances it is necessary to search\n"
+                "a library multiple times.  By default, we do not.";
+};
+
 /*
  * * * * * * * * * * * * * * * * * * * * * * * * * *
  */
 flag = {
     name        = doc_compile;
     documentation;
-    descrip     = 'compile-only mode options:';
+    descrip     = 'compile only mode options:';
 };
 
 flag = {
index cd7528e8b84e2e2772a74ae3936c461a3e4e0093..022fec8311a003b120f9c79576c6a707a89b6c70 100644 (file)
@@ -3,15 +3,10 @@
  *
  *  Strings that, when written from 'C', must be the same as
  *  the strings typed in the definition and template files.
- */[=
-
+ */
+[=
 IF (== (suffix) "h") =][=
-
-  (define guard (string-append "HDRGRD_" (string-upcase!
-                (string->c-name! (out-name)) )))
-  (define hdr-name (out-name)) =]
-#ifndef [=(. guard)=]
-#define [=(. guard)=] 1
+  (make-header-guard "ltmain") =]
 
 #include <stdio.h>
 #include <options.h>
@@ -52,17 +47,18 @@ extern emitScriptProc emitScript;[=
 
 ELSE  not h suffix
 
-=]
-#include "[=(. hdr-name)=]"
+=]#include "[=(. header-file)=]"
 [=
 (define tpl-name  "")
 (define cmd-list  "")
+(define cmd-str   "")
 (define proc-list "")
 (define Cmd-Name  "") =][=
 
 FOR string           =][=
 
   (set! Cmd-Name (string-capitalize! (get "str_name")))
+  (set! cmd-str  (string-append "z" Cmd-Name "Cmd"))
 
 =]
 /*
@@ -84,12 +80,12 @@ tSCC zExplain[=(. Cmd-Name)=][ [=
       IF (exist? "explain")     =]
 
 [=    ENDIF                     =]
-tSCC z[= (. Cmd-Name) =]Cmd[] =[=
-   (out-push-new ".lt.sh")      =][=
-   INCLUDE (. tpl-name)         =][=
-   (out-pop)
-   (set! cmd-list (string-append cmd-list "z" Cmd-Name "Cmd\n"))
-   (kr-string (shell "cat .lt.sh ; rm -f .lt.sh"))
+tSCC [= (. cmd-str)         =][] =[=
+   INCLUDE
+   (set! cmd-list (string-append cmd-list cmd-str "\n"))
+   (out-push-new)
+   (. tpl-name)             =][=
+   (kr-string (out-pop #t))
    =];
 
 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */[=
@@ -148,6 +144,6 @@ extern void modalUsage      LT_PARAMS(( tOptions* pOpts, int exitCode ));
 extern void emitShellQuoted LT_PARAMS(( tCC* pzArg, FILE* outFp ));
 extern void emitShellArg    LT_PARAMS(( tCC* pzArg, FILE* outFp ));
 
-#endif /* [=(. guard)=] */[=
+#endif /* [=(. header-guard)=] */[=
 
 ENDIF =]