texlive[44806] Master/tlpkg/libexec/ctan2tds: allow for ctan2tds with

commits+preining at tug.org commits+preining at tug.org
Sat Jul 15 15:00:39 CEST 2017


Revision: 44806
          http://tug.org/svn/texlive?view=revision&revision=44806
Author:   preining
Date:     2017-07-15 15:00:39 +0200 (Sat, 15 Jul 2017)
Log Message:
-----------
allow for ctan2tds with nonfree stuff

Modified Paths:
--------------
    trunk/Master/tlpkg/libexec/ctan2tds

Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds	2017-07-15 08:12:12 UTC (rev 44805)
+++ trunk/Master/tlpkg/libexec/ctan2tds	2017-07-15 13:00:39 UTC (rev 44806)
@@ -70,7 +70,7 @@
  'a4',          "die 'skipping, just a pointer to ntgclass'",
  'aastex',      "&MAKEflatten",
  'accenti',     "die 'skipping, use bosisio instead'",
- 'acmtrans',    "die 'skipping, nonfree (nosell) license'",
+ 'acmtrans',    "nonfree_die('skipping, nonfree (nosell) license', '&MAKEflatten')",
  'acromake',    "die 'skipping, nonfree (nomodify) license'",
  'acroflex',    "die 'skipping, per author (dps) request'",
  'acrotex',     "die 'skipping, per author (dps) request'",
@@ -6402,4 +6402,13 @@
   return $result;
 }
 
+sub nonfree_die {
+  my ($diestr, $cmd) = @_;
+  if ($ENV{'CTAN2TDS_NONFREE'}) {
+    eval $cmd;
+  } else {
+    die $diestr;
+  }
+}
+
 # vim: set tabstop=8 shiftwidth=2 expandtab: 



More information about the tex-live-commits mailing list