chiark / gitweb /
Cope with modern Perl's default @INC
[ypp-sc-tools.db-live.git] / yarrg / dictionary-update-receiver
index 8ccea9823be369cb7fbe3221c11304baf3c97aac..4c90f8489669e858c9ae74e10d3b2a38688d1ef7 100755 (executable)
@@ -30,6 +30,8 @@
 # YPPSC_YARRG_DICT_UPDATE=./ YPPSC_YARRG_DICT_SUBMIT=./ ./yarrg --ocean midnight --pirate aristarchus --find-island --same --raw-tsv >raw.tsv  
 # ./dictionary-manager --debug --approve-updates '' . .
 
+BEGIN { unshift @INC, qw(.) }
+
 use strict (qw(vars));
 use POSIX;
 
@@ -43,7 +45,8 @@ use IO::Handle;
 use Commods;
 
 if (param('get_source')) {
-    header('application/octet-stream');
+    # There's another copy of this in commod-update-receiver.  Sorry.
+    print header('application/octet-stream') or die $!;
     source_tarball('..', sub { print $_[0] or die $!; });
     exit 0;
 }