summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tlcom
blob: 924dc92167b75030a754ab58b99114c4226dcc2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
# $Id$
# Commit after TL package update. We rely on PATH to deal with trunk vs.
# branch (see c2a and c2b). See also libexec/ctan2tds for the real work
# of importing from CTAN; c2l and ctan2tl are additional wrappers
# (called by c2a).

test $# -eq 0 && cd /
/bin/pwd >/dev/null || exit 1

msg=`echo "$1" | sed "s/^-m//"`
shift

dirlist=${TMPDIR-/tmp}/`id -u`.tlplace.dirs
tlroot=`tail -n 1 $dirlist | sed 's,/Master.*,,'`
if test ! -d "$tlroot/Master"; then
  echo "$0: failed to get tlroot from $dirlist: $tlroot" >&2
  exit 1
fi
echo "$tlroot"
sleep 1

svn commit -m"$msg" `cat $dirlist` \
  "$tlroot"/Master/tlpkg/bin/tlpkg-ctan-check \
  "$tlroot"/Master/tlpkg/bin/tlpkginfo \
  "$tlroot"/Master/tlpkg/libexec/ctan2tds \
  "$tlroot"/Master/tlpkg/bin/ctan2tl \
  "$tlroot"/Master/tlpkg/bin/c2lx \
  "$tlroot"/Master/tlpkg/tlpsrc/ \
  "$tlroot"/TODO \
  "$@"