[gentium-commits] [SCM] gentium updated: r6 - trunk/gentium/source/fonts/gentium-tug

karl at gnu.org.ua karl at gnu.org.ua
Thu Jun 13 01:25:45 CEST 2013


Author: karl
Date: 2013-06-13 02:25:44 +0300 (Thu, 13 Jun 2013)
New Revision: 6

Modified:
   trunk/gentium/source/fonts/gentium-tug/make-zip-4CTAN.sh
Log:
rearrange to have upload zip contain subdir
"gentium-tug/" instead of "CTAN/", since that is
what CTAN wants.


Modified: trunk/gentium/source/fonts/gentium-tug/make-zip-4CTAN.sh
===================================================================
--- trunk/gentium/source/fonts/gentium-tug/make-zip-4CTAN.sh	2013-06-04 15:26:00 UTC (rev 5)
+++ trunk/gentium/source/fonts/gentium-tug/make-zip-4CTAN.sh	2013-06-12 23:25:44 UTC (rev 6)
@@ -4,7 +4,8 @@
 
 mydir=`cd \`dirname $0\` && pwd`
 
-if test "x$1" = x-l; then
+if test "x$1" = x-l || whoami | grep karl >/dev/null; then
+  # i always forget
   local=true
 else
   local=false
@@ -21,32 +22,38 @@
   svn co "http://svn.contextgarden.net/gentium/gentium/" "$TDS"
 fi
 
-(cd $TDS/doc/fonts/gentium-tug && make clean)
+pkgname=gentium-tug
+(cd $TDS/doc/fonts/$pkgname && make clean)
 
-CTAN="$tmpdir/CTAN"
+CTAN="$tmpdir/$pkgname"
 mkdir -p "$CTAN/map" || exit 1
 
 rsync="rsync -a --delete --exclude=**/.svn"
-$rsync "$TDS/doc/fonts/gentium-tug/"             "$CTAN/doc/" || exit 1
-$rsync "$TDS/tex/context/third/gentium-tug/"     "$CTAN/context/"
-$rsync "$TDS/tex/latex/gentium-tug/"             "$CTAN/latex/"
-$rsync "$TDS/fonts/afm/public/gentium-tug/"      "$CTAN/afm/"
-$rsync "$TDS/fonts/tfm/public/gentium-tug/"      "$CTAN/tfm/"
-$rsync "$TDS/fonts/truetype/public/gentium-tug/" "$CTAN/truetype/"
-$rsync "$TDS/fonts/type1/public/gentium-tug/"    "$CTAN/type1/"
-$rsync "$TDS/fonts/enc/dvips/gentium-tug/"       "$CTAN/enc/"
-$rsync "$TDS/fonts/map/dvips/gentium-tug/"       "$CTAN/map/dvips/"
-$rsync "$TDS/fonts/map/pdftex/gentium-tug/"      "$CTAN/map/pdftex/"
+$rsync "$TDS/doc/fonts/$pkgname/"             "$CTAN/doc/" || exit 1
+$rsync "$TDS/tex/context/third/$pkgname/"     "$CTAN/context/"
+$rsync "$TDS/tex/latex/$pkgname/"             "$CTAN/latex/"
+$rsync "$TDS/fonts/afm/public/$pkgname/"      "$CTAN/afm/"
+$rsync "$TDS/fonts/tfm/public/$pkgname/"      "$CTAN/tfm/"
+$rsync "$TDS/fonts/truetype/public/$pkgname/" "$CTAN/truetype/"
+$rsync "$TDS/fonts/type1/public/$pkgname/"    "$CTAN/type1/"
+$rsync "$TDS/fonts/enc/dvips/$pkgname/"       "$CTAN/enc/"
+$rsync "$TDS/fonts/map/dvips/$pkgname/"       "$CTAN/map/dvips/"
+$rsync "$TDS/fonts/map/pdftex/$pkgname/"      "$CTAN/map/pdftex/"
 
 printf "\f making .tds.zip:\n"
-tdszip_dest=$CTAN # $tmpdir to omit from ctan zip.
+tdszip_dest=$tmpdir
 (cd $TDS \
- && zip -r $tdszip_dest/gentium-tug.tds.zip [a-z]* -x \*.svn\*) # not README
+ && zip -qr $tdszip_dest/$pkgname.tds.zip [a-z]* -x \*.svn\*) # not README
 
 printf "\f making combined zip for upload:\n"
 ln -s doc/README $CTAN/README
-(cd $CTAN && zip -ry $tmpdir/gentium-tug.zip *) # -y: keep README as symlink
+(cd $tmpdir && zip -qry $tmpdir/$pkgname.zip *) # -y: keep README as symlink
 
+# create a single .zip for upload that contains
+#   a) $pkgname.tds.zip
+#   b) $pkgname/ subdir for browsing
+# because that's what CTAN wants these days.
+
 if $local; then :; else
   echo
   echo "Please make sure that you have set"
@@ -55,4 +62,4 @@
   echo
 fi
 
-ls -l $tdszip_dest/gentium-tug.tds.zip $tmpdir/gentium-tug.zip
+ls -l $tdszip_dest/$pkgname.tds.zip $tmpdir/$pkgname.zip



More information about the gentium-commits mailing list