/ [gentium] / trunk / gentium / source / fonts / gentium-tug / make-zip-4CTAN.sh
To checkout: svn checkout http://svn.gnu.org.ua/sources/gentium/trunk/gentium/source/fonts/gentium-tug/make-zip-4CTAN.sh
Puszcza

Contents of /trunk/gentium/source/fonts/gentium-tug/make-zip-4CTAN.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 24 - (show annotations)
Tue Jul 9 22:04:39 2019 UTC (2 years ago) by karl
File MIME type: application/x-sh
File size: 2121 byte(s)
enable final sigma ligatures in lgr-*.tfm
1 #!/bin/sh
2 # This file is part of the Gentium package for TeX.
3 # It is licensed under the Expat License, see doc//README for details.
4
5 mydir=`cd \`dirname $0\` && pwd`
6
7 if test "x$1" = x-l || whoami | grep karl >/dev/null; then
8 # i always forget
9 local=true
10 else
11 local=false
12 fi
13
14 rm -rf /tmp/gentium??????
15 #tmpdir=`mktemp -d /tmp/gentiumXXXXXX`
16 tmpdir=/tmp/gnt; rm -rf $tmpdir; mkdir $tmpdir
17 cd "$tmpdir" || exit 1
18
19 if $local; then
20 TDS=`cd $mydir/../../.. && pwd`
21 else
22 TDS="$tmpdir/TDS"
23 svn co "http://svn.contextgarden.net/gentium/gentium/" "$TDS"
24 fi
25
26 pkgname=gentium-tug
27 (cd $TDS/doc/fonts/$pkgname && make clean)
28 (cd $TDS/source/fonts/$pkgname && make clean)
29
30 CTAN="$tmpdir/$pkgname"
31 mkdir -p "$CTAN/map" || exit 1
32
33 rsync="rsync -a --delete --exclude=**/.svn"
34 $rsync "$TDS/doc/fonts/$pkgname/" "$CTAN/doc/" || exit 1
35 $rsync "$TDS/source/fonts/$pkgname/" "$CTAN/source/"
36 $rsync "$TDS/tex/context/third/$pkgname/" "$CTAN/context/"
37 $rsync "$TDS/tex/latex/$pkgname/" "$CTAN/latex/"
38 $rsync "$TDS/fonts/afm/public/$pkgname/" "$CTAN/afm/"
39 $rsync "$TDS/fonts/tfm/public/$pkgname/" "$CTAN/tfm/"
40 $rsync "$TDS/fonts/truetype/public/$pkgname/" "$CTAN/truetype/"
41 $rsync "$TDS/fonts/type1/public/$pkgname/" "$CTAN/type1/"
42 $rsync "$TDS/fonts/enc/dvips/$pkgname/" "$CTAN/enc/"
43 $rsync "$TDS/fonts/map/dvips/$pkgname/" "$CTAN/map/dvips/"
44 $rsync "$TDS/fonts/map/pdftex/$pkgname/" "$CTAN/map/pdftex/"
45
46 printf "\f making .tds.zip:\n"
47 tdszip_dest=$tmpdir
48 (cd $TDS \
49 && zip -qr $tdszip_dest/$pkgname.tds.zip [a-z]* -x \*.svn\*) # not README
50
51 printf "\f making combined zip for upload:\n"
52 ln -s doc/README $CTAN/README
53 (cd $tmpdir && zip -qry $tmpdir/$pkgname.zip *) # -y: keep README as symlink
54
55 # create a single .zip for upload that contains
56 # a) $pkgname.tds.zip
57 # b) $pkgname/ subdir for browsing
58 # because that's what CTAN wants these days.
59
60 if $local; then :; else
61 echo
62 echo "Please make sure that you have set"
63 echo " use-commit-times = yes"
64 echo "in ~/.subversion/config"
65 echo
66 fi
67
68 ls -l $tdszip_dest/$pkgname.tds.zip $tmpdir/$pkgname.zip

Properties

Name Value
svn:eol-style native
svn:executable *

Send suggestions and bug reports to Sergey Poznyakoff
ViewVC Help
Powered by ViewVC 1.1.20