From 3cfdc74a6e64575df5c94eaa11bc7884a0cfc020 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 26 Dec 2006 23:16:15 +0000 Subject: marginnote update git-svn-id: svn://tug.org/texlive/trunk@2949 c570f23f-e606-0410-a88d-b1316a301751 --- Build/cdbuild/ctan2tds.pl | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'Build') 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 */*/*"); -- cgit v1.2.3