From 07def87c4c992e625f0e55cbdd69f6c857477a35 Mon Sep 17 00:00:00 2001 From: Fred Emmott Date: Thu, 7 Feb 2019 11:28:34 -0800 Subject: [PATCH] manual fixups for .hack migration --- bin/hh-autoload.hack | 2 +- src/Writer.hack | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/hh-autoload.hack b/bin/hh-autoload.hack index c2099ea..980c122 100755 --- a/bin/hh-autoload.hack +++ b/bin/hh-autoload.hack @@ -125,7 +125,7 @@ final class GenerateScript { ->setFailureHandler(/* HH_IGNORE_ERROR[4110] */ $handler) ->setIsDev($options['dev']) ->writeToDirectory(\getcwd().'/vendor/'); - print(\getcwd().'/vendor/autoload.hack'); + print(\getcwd()."/vendor/autoload.hack\n"); } private static function printUsage( diff --git a/src/Writer.hack b/src/Writer.hack index 9b1db73..b8c44a6 100644 --- a/src/Writer.hack +++ b/src/Writer.hack @@ -9,7 +9,7 @@ namespace Facebook\AutoloadMap; -/** Class to write `hh_autoload.php`. +/** Class to write `autoload.hack`. * * This includes: * - the autoload map @@ -181,7 +181,8 @@ final class Writer { |> \str_replace(')', ']', $$); if ($this->relativeAutoloadRoot) { - $autoload_map_typedef = '__DIR__.\'/../\'.'.\var_export($this->relativePath(__DIR__.'/AutoloadMap.php'), true); + $autoload_map_typedef = + '__DIR__.\'/../\'.'.\var_export($this->relativePath(__DIR__.'/AutoloadMap.hack'), true); } else { $autoload_map_typedef = \var_export(__DIR__.'/AutoloadMap.php', true); }