]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: added missing mkdir $progdir for on-demand executable
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Mon, 22 Feb 1999 20:55:45 +0000 (20:55 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 22 Feb 1999 20:55:45 +0000 (20:55 +0000)
ChangeLog
ltmain.in

index b130c58c9b6c1e982210b2cd25b7a5f106868b52..376dfc1ec7de54943967180f983421e5fd873f69 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 1999-02-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * ltmain.in: added missing mkdir $progdir for on-demand executable
+
        * ltmain.in: create on-demand executable as $progdir/$$-$program,
        and rename it to $progdir/$program only when it's finished, to
        avoid race conditions.  We can still get the program linked
index fe1dedd82fa64965cd7a9c99f93882c5167f86b7..745e33317d4860ba4944cd420472508ee740918d 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -2666,7 +2666,11 @@ else
 
     file=\"\$\$-\$program\"
 
-    $rm \"\$progdir/\$file\""
+    if test ! -d \"\$progdir\"; then
+      $mkdir \"\$progdir\"
+    else
+      $rm \"\$progdir/\$file\"
+    fi"
 
          echo >> $output "\