blob: 4950237b4ac5f1265ba669569b1b5a88f1e6e509 (
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
|
#!/bin/sh
# $Id$
# Copyright 2007 Norbert Preining
# This file is licensed under the GNU General Public License version 2
# or any later version.
#
# Make new database by calling the tlpsrc -> tlpdb script on all
# the tlpsrc files.
unset CDPATH
cd `dirname $0`/../.. || exit 1
if test "x$1" = x-n; then
chicken=true
shift
else
chicken=false
fi
perl tlpkg/bin/tlpsrc2tlpdb "$@" tlpkg/tlpsrc/*.tlpsrc >texlive.tlpdb.new
if $chicken; then
echo "$0: skipping update, see `pwd`/texlive.tlpdb.new."
else
mv texlive.tlpdb ${TMPDIR-/tmp}/texlive.tlpdb.saved
mv texlive.tlpdb.new texlive.tlpdb
fi
|