summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-12-26 23:16:15 +0000
committerKarl Berry <karl@freefriends.org>2006-12-26 23:16:15 +0000
commit3cfdc74a6e64575df5c94eaa11bc7884a0cfc020 (patch)
treeca7aef2b6187918182b62a66ff8a31444e9ba612 /Build
parent2503beec69ff30090720f0148d220f7363a674ef (diff)
marginnote update
git-svn-id: svn://tug.org/texlive/trunk@2949 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rwxr-xr-xBuild/cdbuild/ctan2tds.pl13
1 files changed, 10 insertions, 3 deletions
diff --git a/Build/cdbuild/ctan2tds.pl b/Build/cdbuild/ctan2tds.pl
index 03fb46f7573..50a43d28f51 100755
--- a/Build/cdbuild/ctan2tds.pl
+++ b/Build/cdbuild/ctan2tds.pl
@@ -195,7 +195,7 @@ chdir $startdir || die "chdir($startdir) failed: $!";
'makor', "&MAKEbase",
'manjutex', "&MAKEflatten",
'mathdesign', "&MAKEmathdesign",
- 'marginnote', "&MAKEcopy",
+ 'marginnote', "&MAKEunzip",
'mathmode', "&setup",
'mathpazo', "&MAKEmathpazo",
'metaobj', "&MAKEflatten",
@@ -1088,7 +1088,7 @@ sub MAKEcopy {
print "\t COPY from $packagedir to $dest\n";
- chdir ($packagedir) || die "chdir($packagedir) failed: $!";
+ &xchdir ($packagedir);
&SYSTEM ("mkdir -p $dest");
# do the copy.
@@ -1499,10 +1499,17 @@ sub MAKEflatten {
&donormal;
}
+# a ctan-ready zip file.
+sub MAKEunzip {
+ &SYSTEM("mkdir -p $DEST");
+ &xchdir ($DEST);
+ &SYSTEM ("unzip -q -o -a $startdir/$packagedir/$package*.zip");
+}
+
sub MAKEunzipandflatten {
&setup;
chdir("$DEST/doc/$whichdocformat/$package");
- &SYSTEM("unzip -o -a $package.zip; rm $package.zip");
+ &SYSTEM("unzip -q -o -a $package.zip; rm $package.zip");
&SYSTEM("$MV */*/*/*/* .; rmdir */*/*/*");
&SYSTEM("$MV */*/*/* .; rmdir */*/*");
&SYSTEM("$MV */*/*/* .; rmdir */*/*");