summaryrefslogtreecommitdiff
path: root/Master/bin
diff options
context:
space:
mode:
authorReinhard Kotucha <reinhard.kotucha@web.de>2008-05-25 22:24:33 +0000
committerReinhard Kotucha <reinhard.kotucha@web.de>2008-05-25 22:24:33 +0000
commit43d77505d2519dbe0da40d194aa8d92dc7439677 (patch)
tree2258cd0c48d766c7ed67ce6e522483bea515aa4b /Master/bin
parent5cf07d70b0c02dfc4411af9975256fc8cb3b09e7 (diff)
updmap: copy files when symlinks fail.
git-svn-id: svn://tug.org/texlive/trunk@8349 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin')
-rwxr-xr-xMaster/bin/alpha-linux/updmap40
-rwxr-xr-xMaster/bin/hppa-hpux/updmap40
-rwxr-xr-xMaster/bin/i386-darwin/updmap40
-rwxr-xr-xMaster/bin/i386-freebsd/updmap40
-rwxr-xr-xMaster/bin/i386-linux/updmap40
-rwxr-xr-xMaster/bin/i386-openbsd/updmap40
-rwxr-xr-xMaster/bin/i386-solaris/updmap40
-rwxr-xr-xMaster/bin/mips-irix/updmap40
-rwxr-xr-xMaster/bin/powerpc-aix/updmap40
-rwxr-xr-xMaster/bin/powerpc-darwin/updmap40
-rwxr-xr-xMaster/bin/powerpc-linux/updmap40
-rwxr-xr-xMaster/bin/sparc-linux/updmap40
-rwxr-xr-xMaster/bin/sparc-solaris/updmap40
-rwxr-xr-xMaster/bin/x86_64-linux/updmap40
14 files changed, 434 insertions, 126 deletions
diff --git a/Master/bin/alpha-linux/updmap b/Master/bin/alpha-linux/updmap
index f55fd95a84c..e09c817451b 100755
--- a/Master/bin/alpha-linux/updmap
+++ b/Master/bin/alpha-linux/updmap
@@ -5,6 +5,8 @@
###############################################################################
# program history:
+# Sun May 25 21:05:32 CEST 2008 (Reinhard Kotucha)
+# add function symlink_or_copy needed by tl-portable.
# Post-te retirement, now maintained in TeX Live; see
# Build/texk/tetex/ChangeLog for further changes.
# Fr Jul 22 07:22:38 CEST 2005
@@ -92,7 +94,7 @@ export PATH
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
# the version string
-version=1210234762 # seconds since `00:00:00 1970-01-01 UTC'
+version=1211742332 # seconds since `00:00:00 1970-01-01 UTC'
# date '+%s' (with GNU date)
#
@@ -211,6 +213,24 @@ cfgval()
}
###############################################################################
+# symlink_or_copy()
+# if --copy is not set, try to create a symlink. If this fails, write
+# a message to stderr and copy the file instead.
+###############################################################################
+symlink_or_copy()
+{
+ if $copy; then
+ $copy_cmd "$1" "$2"
+ else
+ $link_cmd "$1" "$2" ||
+ {
+ echo "Creating symbolic link failed, the file is copied instead." 1>&2 &&
+ $copy_cmd "$1" "$2"
+ }
+ fi
+}
+
+###############################################################################
# setupSymlinks()
# set symlink (or copy)
# for psfonts.map according to dvipsPreferOutline variable,
@@ -222,25 +242,25 @@ setupSymlinks()
cd "$dvipsoutputdir" || exit 1
rm -f psfonts.map
if test "x$dvipsPreferOutline" = xtrue; then
- $link_cmd psfonts_t1.map psfonts.map
+ symlink_or_copy psfonts_t1.map psfonts.map
else
- $link_cmd psfonts_pk.map psfonts.map
+ symlink_or_copy psfonts_pk.map psfonts.map
fi
cd "$pdftexoutputdir" || exit 1
rm -f pdftex.map
if test "x$pdftexDownloadBase14" = xtrue; then
- $link_cmd pdftex_dl14.map pdftex.map
+ symlink_or_copy pdftex_dl14.map pdftex.map
else
- $link_cmd pdftex_ndl14.map pdftex.map
+ symlink_or_copy pdftex_ndl14.map pdftex.map
fi
cd "$dvipdfmoutputdir" || exit 1
rm -f dvipdfm.map
if test "x$dvipdfmDownloadBase14" = xtrue; then
- $link_cmd dvipdfm_dl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_dl14.map dvipdfm.map
else
- $link_cmd dvipdfm_ndl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_ndl14.map dvipdfm.map
fi
)
}
@@ -894,7 +914,7 @@ processOptions()
--cnffile=*)
cfgparam=1; cnfFile=`echo "$1" | sed 's/--cnffile=//'`;;
--copy)
- link_cmd="cp";;
+ copy=true;;
--dry-run|-n)
chicken_mode=true;;
--dvipsoutputdir)
@@ -1301,7 +1321,9 @@ main()
log=
chicken_mode=false
link_cmd="ln -s"
-
+ copy_cmd="cp"
+ copy=false
+
cfgparam=
outputdirparam=
cfgmaint=
diff --git a/Master/bin/hppa-hpux/updmap b/Master/bin/hppa-hpux/updmap
index f55fd95a84c..e09c817451b 100755
--- a/Master/bin/hppa-hpux/updmap
+++ b/Master/bin/hppa-hpux/updmap
@@ -5,6 +5,8 @@
###############################################################################
# program history:
+# Sun May 25 21:05:32 CEST 2008 (Reinhard Kotucha)
+# add function symlink_or_copy needed by tl-portable.
# Post-te retirement, now maintained in TeX Live; see
# Build/texk/tetex/ChangeLog for further changes.
# Fr Jul 22 07:22:38 CEST 2005
@@ -92,7 +94,7 @@ export PATH
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
# the version string
-version=1210234762 # seconds since `00:00:00 1970-01-01 UTC'
+version=1211742332 # seconds since `00:00:00 1970-01-01 UTC'
# date '+%s' (with GNU date)
#
@@ -211,6 +213,24 @@ cfgval()
}
###############################################################################
+# symlink_or_copy()
+# if --copy is not set, try to create a symlink. If this fails, write
+# a message to stderr and copy the file instead.
+###############################################################################
+symlink_or_copy()
+{
+ if $copy; then
+ $copy_cmd "$1" "$2"
+ else
+ $link_cmd "$1" "$2" ||
+ {
+ echo "Creating symbolic link failed, the file is copied instead." 1>&2 &&
+ $copy_cmd "$1" "$2"
+ }
+ fi
+}
+
+###############################################################################
# setupSymlinks()
# set symlink (or copy)
# for psfonts.map according to dvipsPreferOutline variable,
@@ -222,25 +242,25 @@ setupSymlinks()
cd "$dvipsoutputdir" || exit 1
rm -f psfonts.map
if test "x$dvipsPreferOutline" = xtrue; then
- $link_cmd psfonts_t1.map psfonts.map
+ symlink_or_copy psfonts_t1.map psfonts.map
else
- $link_cmd psfonts_pk.map psfonts.map
+ symlink_or_copy psfonts_pk.map psfonts.map
fi
cd "$pdftexoutputdir" || exit 1
rm -f pdftex.map
if test "x$pdftexDownloadBase14" = xtrue; then
- $link_cmd pdftex_dl14.map pdftex.map
+ symlink_or_copy pdftex_dl14.map pdftex.map
else
- $link_cmd pdftex_ndl14.map pdftex.map
+ symlink_or_copy pdftex_ndl14.map pdftex.map
fi
cd "$dvipdfmoutputdir" || exit 1
rm -f dvipdfm.map
if test "x$dvipdfmDownloadBase14" = xtrue; then
- $link_cmd dvipdfm_dl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_dl14.map dvipdfm.map
else
- $link_cmd dvipdfm_ndl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_ndl14.map dvipdfm.map
fi
)
}
@@ -894,7 +914,7 @@ processOptions()
--cnffile=*)
cfgparam=1; cnfFile=`echo "$1" | sed 's/--cnffile=//'`;;
--copy)
- link_cmd="cp";;
+ copy=true;;
--dry-run|-n)
chicken_mode=true;;
--dvipsoutputdir)
@@ -1301,7 +1321,9 @@ main()
log=
chicken_mode=false
link_cmd="ln -s"
-
+ copy_cmd="cp"
+ copy=false
+
cfgparam=
outputdirparam=
cfgmaint=
diff --git a/Master/bin/i386-darwin/updmap b/Master/bin/i386-darwin/updmap
index f55fd95a84c..e09c817451b 100755
--- a/Master/bin/i386-darwin/updmap
+++ b/Master/bin/i386-darwin/updmap
@@ -5,6 +5,8 @@
###############################################################################
# program history:
+# Sun May 25 21:05:32 CEST 2008 (Reinhard Kotucha)
+# add function symlink_or_copy needed by tl-portable.
# Post-te retirement, now maintained in TeX Live; see
# Build/texk/tetex/ChangeLog for further changes.
# Fr Jul 22 07:22:38 CEST 2005
@@ -92,7 +94,7 @@ export PATH
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
# the version string
-version=1210234762 # seconds since `00:00:00 1970-01-01 UTC'
+version=1211742332 # seconds since `00:00:00 1970-01-01 UTC'
# date '+%s' (with GNU date)
#
@@ -211,6 +213,24 @@ cfgval()
}
###############################################################################
+# symlink_or_copy()
+# if --copy is not set, try to create a symlink. If this fails, write
+# a message to stderr and copy the file instead.
+###############################################################################
+symlink_or_copy()
+{
+ if $copy; then
+ $copy_cmd "$1" "$2"
+ else
+ $link_cmd "$1" "$2" ||
+ {
+ echo "Creating symbolic link failed, the file is copied instead." 1>&2 &&
+ $copy_cmd "$1" "$2"
+ }
+ fi
+}
+
+###############################################################################
# setupSymlinks()
# set symlink (or copy)
# for psfonts.map according to dvipsPreferOutline variable,
@@ -222,25 +242,25 @@ setupSymlinks()
cd "$dvipsoutputdir" || exit 1
rm -f psfonts.map
if test "x$dvipsPreferOutline" = xtrue; then
- $link_cmd psfonts_t1.map psfonts.map
+ symlink_or_copy psfonts_t1.map psfonts.map
else
- $link_cmd psfonts_pk.map psfonts.map
+ symlink_or_copy psfonts_pk.map psfonts.map
fi
cd "$pdftexoutputdir" || exit 1
rm -f pdftex.map
if test "x$pdftexDownloadBase14" = xtrue; then
- $link_cmd pdftex_dl14.map pdftex.map
+ symlink_or_copy pdftex_dl14.map pdftex.map
else
- $link_cmd pdftex_ndl14.map pdftex.map
+ symlink_or_copy pdftex_ndl14.map pdftex.map
fi
cd "$dvipdfmoutputdir" || exit 1
rm -f dvipdfm.map
if test "x$dvipdfmDownloadBase14" = xtrue; then
- $link_cmd dvipdfm_dl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_dl14.map dvipdfm.map
else
- $link_cmd dvipdfm_ndl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_ndl14.map dvipdfm.map
fi
)
}
@@ -894,7 +914,7 @@ processOptions()
--cnffile=*)
cfgparam=1; cnfFile=`echo "$1" | sed 's/--cnffile=//'`;;
--copy)
- link_cmd="cp";;
+ copy=true;;
--dry-run|-n)
chicken_mode=true;;
--dvipsoutputdir)
@@ -1301,7 +1321,9 @@ main()
log=
chicken_mode=false
link_cmd="ln -s"
-
+ copy_cmd="cp"
+ copy=false
+
cfgparam=
outputdirparam=
cfgmaint=
diff --git a/Master/bin/i386-freebsd/updmap b/Master/bin/i386-freebsd/updmap
index f55fd95a84c..e09c817451b 100755
--- a/Master/bin/i386-freebsd/updmap
+++ b/Master/bin/i386-freebsd/updmap
@@ -5,6 +5,8 @@
###############################################################################
# program history:
+# Sun May 25 21:05:32 CEST 2008 (Reinhard Kotucha)
+# add function symlink_or_copy needed by tl-portable.
# Post-te retirement, now maintained in TeX Live; see
# Build/texk/tetex/ChangeLog for further changes.
# Fr Jul 22 07:22:38 CEST 2005
@@ -92,7 +94,7 @@ export PATH
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
# the version string
-version=1210234762 # seconds since `00:00:00 1970-01-01 UTC'
+version=1211742332 # seconds since `00:00:00 1970-01-01 UTC'
# date '+%s' (with GNU date)
#
@@ -211,6 +213,24 @@ cfgval()
}
###############################################################################
+# symlink_or_copy()
+# if --copy is not set, try to create a symlink. If this fails, write
+# a message to stderr and copy the file instead.
+###############################################################################
+symlink_or_copy()
+{
+ if $copy; then
+ $copy_cmd "$1" "$2"
+ else
+ $link_cmd "$1" "$2" ||
+ {
+ echo "Creating symbolic link failed, the file is copied instead." 1>&2 &&
+ $copy_cmd "$1" "$2"
+ }
+ fi
+}
+
+###############################################################################
# setupSymlinks()
# set symlink (or copy)
# for psfonts.map according to dvipsPreferOutline variable,
@@ -222,25 +242,25 @@ setupSymlinks()
cd "$dvipsoutputdir" || exit 1
rm -f psfonts.map
if test "x$dvipsPreferOutline" = xtrue; then
- $link_cmd psfonts_t1.map psfonts.map
+ symlink_or_copy psfonts_t1.map psfonts.map
else
- $link_cmd psfonts_pk.map psfonts.map
+ symlink_or_copy psfonts_pk.map psfonts.map
fi
cd "$pdftexoutputdir" || exit 1
rm -f pdftex.map
if test "x$pdftexDownloadBase14" = xtrue; then
- $link_cmd pdftex_dl14.map pdftex.map
+ symlink_or_copy pdftex_dl14.map pdftex.map
else
- $link_cmd pdftex_ndl14.map pdftex.map
+ symlink_or_copy pdftex_ndl14.map pdftex.map
fi
cd "$dvipdfmoutputdir" || exit 1
rm -f dvipdfm.map
if test "x$dvipdfmDownloadBase14" = xtrue; then
- $link_cmd dvipdfm_dl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_dl14.map dvipdfm.map
else
- $link_cmd dvipdfm_ndl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_ndl14.map dvipdfm.map
fi
)
}
@@ -894,7 +914,7 @@ processOptions()
--cnffile=*)
cfgparam=1; cnfFile=`echo "$1" | sed 's/--cnffile=//'`;;
--copy)
- link_cmd="cp";;
+ copy=true;;
--dry-run|-n)
chicken_mode=true;;
--dvipsoutputdir)
@@ -1301,7 +1321,9 @@ main()
log=
chicken_mode=false
link_cmd="ln -s"
-
+ copy_cmd="cp"
+ copy=false
+
cfgparam=
outputdirparam=
cfgmaint=
diff --git a/Master/bin/i386-linux/updmap b/Master/bin/i386-linux/updmap
index f55fd95a84c..e09c817451b 100755
--- a/Master/bin/i386-linux/updmap
+++ b/Master/bin/i386-linux/updmap
@@ -5,6 +5,8 @@
###############################################################################
# program history:
+# Sun May 25 21:05:32 CEST 2008 (Reinhard Kotucha)
+# add function symlink_or_copy needed by tl-portable.
# Post-te retirement, now maintained in TeX Live; see
# Build/texk/tetex/ChangeLog for further changes.
# Fr Jul 22 07:22:38 CEST 2005
@@ -92,7 +94,7 @@ export PATH
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
# the version string
-version=1210234762 # seconds since `00:00:00 1970-01-01 UTC'
+version=1211742332 # seconds since `00:00:00 1970-01-01 UTC'
# date '+%s' (with GNU date)
#
@@ -211,6 +213,24 @@ cfgval()
}
###############################################################################
+# symlink_or_copy()
+# if --copy is not set, try to create a symlink. If this fails, write
+# a message to stderr and copy the file instead.
+###############################################################################
+symlink_or_copy()
+{
+ if $copy; then
+ $copy_cmd "$1" "$2"
+ else
+ $link_cmd "$1" "$2" ||
+ {
+ echo "Creating symbolic link failed, the file is copied instead." 1>&2 &&
+ $copy_cmd "$1" "$2"
+ }
+ fi
+}
+
+###############################################################################
# setupSymlinks()
# set symlink (or copy)
# for psfonts.map according to dvipsPreferOutline variable,
@@ -222,25 +242,25 @@ setupSymlinks()
cd "$dvipsoutputdir" || exit 1
rm -f psfonts.map
if test "x$dvipsPreferOutline" = xtrue; then
- $link_cmd psfonts_t1.map psfonts.map
+ symlink_or_copy psfonts_t1.map psfonts.map
else
- $link_cmd psfonts_pk.map psfonts.map
+ symlink_or_copy psfonts_pk.map psfonts.map
fi
cd "$pdftexoutputdir" || exit 1
rm -f pdftex.map
if test "x$pdftexDownloadBase14" = xtrue; then
- $link_cmd pdftex_dl14.map pdftex.map
+ symlink_or_copy pdftex_dl14.map pdftex.map
else
- $link_cmd pdftex_ndl14.map pdftex.map
+ symlink_or_copy pdftex_ndl14.map pdftex.map
fi
cd "$dvipdfmoutputdir" || exit 1
rm -f dvipdfm.map
if test "x$dvipdfmDownloadBase14" = xtrue; then
- $link_cmd dvipdfm_dl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_dl14.map dvipdfm.map
else
- $link_cmd dvipdfm_ndl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_ndl14.map dvipdfm.map
fi
)
}
@@ -894,7 +914,7 @@ processOptions()
--cnffile=*)
cfgparam=1; cnfFile=`echo "$1" | sed 's/--cnffile=//'`;;
--copy)
- link_cmd="cp";;
+ copy=true;;
--dry-run|-n)
chicken_mode=true;;
--dvipsoutputdir)
@@ -1301,7 +1321,9 @@ main()
log=
chicken_mode=false
link_cmd="ln -s"
-
+ copy_cmd="cp"
+ copy=false
+
cfgparam=
outputdirparam=
cfgmaint=
diff --git a/Master/bin/i386-openbsd/updmap b/Master/bin/i386-openbsd/updmap
index f55fd95a84c..e09c817451b 100755
--- a/Master/bin/i386-openbsd/updmap
+++ b/Master/bin/i386-openbsd/updmap
@@ -5,6 +5,8 @@
###############################################################################
# program history:
+# Sun May 25 21:05:32 CEST 2008 (Reinhard Kotucha)
+# add function symlink_or_copy needed by tl-portable.
# Post-te retirement, now maintained in TeX Live; see
# Build/texk/tetex/ChangeLog for further changes.
# Fr Jul 22 07:22:38 CEST 2005
@@ -92,7 +94,7 @@ export PATH
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
# the version string
-version=1210234762 # seconds since `00:00:00 1970-01-01 UTC'
+version=1211742332 # seconds since `00:00:00 1970-01-01 UTC'
# date '+%s' (with GNU date)
#
@@ -211,6 +213,24 @@ cfgval()
}
###############################################################################
+# symlink_or_copy()
+# if --copy is not set, try to create a symlink. If this fails, write
+# a message to stderr and copy the file instead.
+###############################################################################
+symlink_or_copy()
+{
+ if $copy; then
+ $copy_cmd "$1" "$2"
+ else
+ $link_cmd "$1" "$2" ||
+ {
+ echo "Creating symbolic link failed, the file is copied instead." 1>&2 &&
+ $copy_cmd "$1" "$2"
+ }
+ fi
+}
+
+###############################################################################
# setupSymlinks()
# set symlink (or copy)
# for psfonts.map according to dvipsPreferOutline variable,
@@ -222,25 +242,25 @@ setupSymlinks()
cd "$dvipsoutputdir" || exit 1
rm -f psfonts.map
if test "x$dvipsPreferOutline" = xtrue; then
- $link_cmd psfonts_t1.map psfonts.map
+ symlink_or_copy psfonts_t1.map psfonts.map
else
- $link_cmd psfonts_pk.map psfonts.map
+ symlink_or_copy psfonts_pk.map psfonts.map
fi
cd "$pdftexoutputdir" || exit 1
rm -f pdftex.map
if test "x$pdftexDownloadBase14" = xtrue; then
- $link_cmd pdftex_dl14.map pdftex.map
+ symlink_or_copy pdftex_dl14.map pdftex.map
else
- $link_cmd pdftex_ndl14.map pdftex.map
+ symlink_or_copy pdftex_ndl14.map pdftex.map
fi
cd "$dvipdfmoutputdir" || exit 1
rm -f dvipdfm.map
if test "x$dvipdfmDownloadBase14" = xtrue; then
- $link_cmd dvipdfm_dl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_dl14.map dvipdfm.map
else
- $link_cmd dvipdfm_ndl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_ndl14.map dvipdfm.map
fi
)
}
@@ -894,7 +914,7 @@ processOptions()
--cnffile=*)
cfgparam=1; cnfFile=`echo "$1" | sed 's/--cnffile=//'`;;
--copy)
- link_cmd="cp";;
+ copy=true;;
--dry-run|-n)
chicken_mode=true;;
--dvipsoutputdir)
@@ -1301,7 +1321,9 @@ main()
log=
chicken_mode=false
link_cmd="ln -s"
-
+ copy_cmd="cp"
+ copy=false
+
cfgparam=
outputdirparam=
cfgmaint=
diff --git a/Master/bin/i386-solaris/updmap b/Master/bin/i386-solaris/updmap
index f55fd95a84c..e09c817451b 100755
--- a/Master/bin/i386-solaris/updmap
+++ b/Master/bin/i386-solaris/updmap
@@ -5,6 +5,8 @@
###############################################################################
# program history:
+# Sun May 25 21:05:32 CEST 2008 (Reinhard Kotucha)
+# add function symlink_or_copy needed by tl-portable.
# Post-te retirement, now maintained in TeX Live; see
# Build/texk/tetex/ChangeLog for further changes.
# Fr Jul 22 07:22:38 CEST 2005
@@ -92,7 +94,7 @@ export PATH
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
# the version string
-version=1210234762 # seconds since `00:00:00 1970-01-01 UTC'
+version=1211742332 # seconds since `00:00:00 1970-01-01 UTC'
# date '+%s' (with GNU date)
#
@@ -211,6 +213,24 @@ cfgval()
}
###############################################################################
+# symlink_or_copy()
+# if --copy is not set, try to create a symlink. If this fails, write
+# a message to stderr and copy the file instead.
+###############################################################################
+symlink_or_copy()
+{
+ if $copy; then
+ $copy_cmd "$1" "$2"
+ else
+ $link_cmd "$1" "$2" ||
+ {
+ echo "Creating symbolic link failed, the file is copied instead." 1>&2 &&
+ $copy_cmd "$1" "$2"
+ }
+ fi
+}
+
+###############################################################################
# setupSymlinks()
# set symlink (or copy)
# for psfonts.map according to dvipsPreferOutline variable,
@@ -222,25 +242,25 @@ setupSymlinks()
cd "$dvipsoutputdir" || exit 1
rm -f psfonts.map
if test "x$dvipsPreferOutline" = xtrue; then
- $link_cmd psfonts_t1.map psfonts.map
+ symlink_or_copy psfonts_t1.map psfonts.map
else
- $link_cmd psfonts_pk.map psfonts.map
+ symlink_or_copy psfonts_pk.map psfonts.map
fi
cd "$pdftexoutputdir" || exit 1
rm -f pdftex.map
if test "x$pdftexDownloadBase14" = xtrue; then
- $link_cmd pdftex_dl14.map pdftex.map
+ symlink_or_copy pdftex_dl14.map pdftex.map
else
- $link_cmd pdftex_ndl14.map pdftex.map
+ symlink_or_copy pdftex_ndl14.map pdftex.map
fi
cd "$dvipdfmoutputdir" || exit 1
rm -f dvipdfm.map
if test "x$dvipdfmDownloadBase14" = xtrue; then
- $link_cmd dvipdfm_dl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_dl14.map dvipdfm.map
else
- $link_cmd dvipdfm_ndl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_ndl14.map dvipdfm.map
fi
)
}
@@ -894,7 +914,7 @@ processOptions()
--cnffile=*)
cfgparam=1; cnfFile=`echo "$1" | sed 's/--cnffile=//'`;;
--copy)
- link_cmd="cp";;
+ copy=true;;
--dry-run|-n)
chicken_mode=true;;
--dvipsoutputdir)
@@ -1301,7 +1321,9 @@ main()
log=
chicken_mode=false
link_cmd="ln -s"
-
+ copy_cmd="cp"
+ copy=false
+
cfgparam=
outputdirparam=
cfgmaint=
diff --git a/Master/bin/mips-irix/updmap b/Master/bin/mips-irix/updmap
index f55fd95a84c..e09c817451b 100755
--- a/Master/bin/mips-irix/updmap
+++ b/Master/bin/mips-irix/updmap
@@ -5,6 +5,8 @@
###############################################################################
# program history:
+# Sun May 25 21:05:32 CEST 2008 (Reinhard Kotucha)
+# add function symlink_or_copy needed by tl-portable.
# Post-te retirement, now maintained in TeX Live; see
# Build/texk/tetex/ChangeLog for further changes.
# Fr Jul 22 07:22:38 CEST 2005
@@ -92,7 +94,7 @@ export PATH
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
# the version string
-version=1210234762 # seconds since `00:00:00 1970-01-01 UTC'
+version=1211742332 # seconds since `00:00:00 1970-01-01 UTC'
# date '+%s' (with GNU date)
#
@@ -211,6 +213,24 @@ cfgval()
}
###############################################################################
+# symlink_or_copy()
+# if --copy is not set, try to create a symlink. If this fails, write
+# a message to stderr and copy the file instead.
+###############################################################################
+symlink_or_copy()
+{
+ if $copy; then
+ $copy_cmd "$1" "$2"
+ else
+ $link_cmd "$1" "$2" ||
+ {
+ echo "Creating symbolic link failed, the file is copied instead." 1>&2 &&
+ $copy_cmd "$1" "$2"
+ }
+ fi
+}
+
+###############################################################################
# setupSymlinks()
# set symlink (or copy)
# for psfonts.map according to dvipsPreferOutline variable,
@@ -222,25 +242,25 @@ setupSymlinks()
cd "$dvipsoutputdir" || exit 1
rm -f psfonts.map
if test "x$dvipsPreferOutline" = xtrue; then
- $link_cmd psfonts_t1.map psfonts.map
+ symlink_or_copy psfonts_t1.map psfonts.map
else
- $link_cmd psfonts_pk.map psfonts.map
+ symlink_or_copy psfonts_pk.map psfonts.map
fi
cd "$pdftexoutputdir" || exit 1
rm -f pdftex.map
if test "x$pdftexDownloadBase14" = xtrue; then
- $link_cmd pdftex_dl14.map pdftex.map
+ symlink_or_copy pdftex_dl14.map pdftex.map
else
- $link_cmd pdftex_ndl14.map pdftex.map
+ symlink_or_copy pdftex_ndl14.map pdftex.map
fi
cd "$dvipdfmoutputdir" || exit 1
rm -f dvipdfm.map
if test "x$dvipdfmDownloadBase14" = xtrue; then
- $link_cmd dvipdfm_dl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_dl14.map dvipdfm.map
else
- $link_cmd dvipdfm_ndl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_ndl14.map dvipdfm.map
fi
)
}
@@ -894,7 +914,7 @@ processOptions()
--cnffile=*)
cfgparam=1; cnfFile=`echo "$1" | sed 's/--cnffile=//'`;;
--copy)
- link_cmd="cp";;
+ copy=true;;
--dry-run|-n)
chicken_mode=true;;
--dvipsoutputdir)
@@ -1301,7 +1321,9 @@ main()
log=
chicken_mode=false
link_cmd="ln -s"
-
+ copy_cmd="cp"
+ copy=false
+
cfgparam=
outputdirparam=
cfgmaint=
diff --git a/Master/bin/powerpc-aix/updmap b/Master/bin/powerpc-aix/updmap
index f55fd95a84c..e09c817451b 100755
--- a/Master/bin/powerpc-aix/updmap
+++ b/Master/bin/powerpc-aix/updmap
@@ -5,6 +5,8 @@
###############################################################################
# program history:
+# Sun May 25 21:05:32 CEST 2008 (Reinhard Kotucha)
+# add function symlink_or_copy needed by tl-portable.
# Post-te retirement, now maintained in TeX Live; see
# Build/texk/tetex/ChangeLog for further changes.
# Fr Jul 22 07:22:38 CEST 2005
@@ -92,7 +94,7 @@ export PATH
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
# the version string
-version=1210234762 # seconds since `00:00:00 1970-01-01 UTC'
+version=1211742332 # seconds since `00:00:00 1970-01-01 UTC'
# date '+%s' (with GNU date)
#
@@ -211,6 +213,24 @@ cfgval()
}
###############################################################################
+# symlink_or_copy()
+# if --copy is not set, try to create a symlink. If this fails, write
+# a message to stderr and copy the file instead.
+###############################################################################
+symlink_or_copy()
+{
+ if $copy; then
+ $copy_cmd "$1" "$2"
+ else
+ $link_cmd "$1" "$2" ||
+ {
+ echo "Creating symbolic link failed, the file is copied instead." 1>&2 &&
+ $copy_cmd "$1" "$2"
+ }
+ fi
+}
+
+###############################################################################
# setupSymlinks()
# set symlink (or copy)
# for psfonts.map according to dvipsPreferOutline variable,
@@ -222,25 +242,25 @@ setupSymlinks()
cd "$dvipsoutputdir" || exit 1
rm -f psfonts.map
if test "x$dvipsPreferOutline" = xtrue; then
- $link_cmd psfonts_t1.map psfonts.map
+ symlink_or_copy psfonts_t1.map psfonts.map
else
- $link_cmd psfonts_pk.map psfonts.map
+ symlink_or_copy psfonts_pk.map psfonts.map
fi
cd "$pdftexoutputdir" || exit 1
rm -f pdftex.map
if test "x$pdftexDownloadBase14" = xtrue; then
- $link_cmd pdftex_dl14.map pdftex.map
+ symlink_or_copy pdftex_dl14.map pdftex.map
else
- $link_cmd pdftex_ndl14.map pdftex.map
+ symlink_or_copy pdftex_ndl14.map pdftex.map
fi
cd "$dvipdfmoutputdir" || exit 1
rm -f dvipdfm.map
if test "x$dvipdfmDownloadBase14" = xtrue; then
- $link_cmd dvipdfm_dl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_dl14.map dvipdfm.map
else
- $link_cmd dvipdfm_ndl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_ndl14.map dvipdfm.map
fi
)
}
@@ -894,7 +914,7 @@ processOptions()
--cnffile=*)
cfgparam=1; cnfFile=`echo "$1" | sed 's/--cnffile=//'`;;
--copy)
- link_cmd="cp";;
+ copy=true;;
--dry-run|-n)
chicken_mode=true;;
--dvipsoutputdir)
@@ -1301,7 +1321,9 @@ main()
log=
chicken_mode=false
link_cmd="ln -s"
-
+ copy_cmd="cp"
+ copy=false
+
cfgparam=
outputdirparam=
cfgmaint=
diff --git a/Master/bin/powerpc-darwin/updmap b/Master/bin/powerpc-darwin/updmap
index f55fd95a84c..e09c817451b 100755
--- a/Master/bin/powerpc-darwin/updmap
+++ b/Master/bin/powerpc-darwin/updmap
@@ -5,6 +5,8 @@
###############################################################################
# program history:
+# Sun May 25 21:05:32 CEST 2008 (Reinhard Kotucha)
+# add function symlink_or_copy needed by tl-portable.
# Post-te retirement, now maintained in TeX Live; see
# Build/texk/tetex/ChangeLog for further changes.
# Fr Jul 22 07:22:38 CEST 2005
@@ -92,7 +94,7 @@ export PATH
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
# the version string
-version=1210234762 # seconds since `00:00:00 1970-01-01 UTC'
+version=1211742332 # seconds since `00:00:00 1970-01-01 UTC'
# date '+%s' (with GNU date)
#
@@ -211,6 +213,24 @@ cfgval()
}
###############################################################################
+# symlink_or_copy()
+# if --copy is not set, try to create a symlink. If this fails, write
+# a message to stderr and copy the file instead.
+###############################################################################
+symlink_or_copy()
+{
+ if $copy; then
+ $copy_cmd "$1" "$2"
+ else
+ $link_cmd "$1" "$2" ||
+ {
+ echo "Creating symbolic link failed, the file is copied instead." 1>&2 &&
+ $copy_cmd "$1" "$2"
+ }
+ fi
+}
+
+###############################################################################
# setupSymlinks()
# set symlink (or copy)
# for psfonts.map according to dvipsPreferOutline variable,
@@ -222,25 +242,25 @@ setupSymlinks()
cd "$dvipsoutputdir" || exit 1
rm -f psfonts.map
if test "x$dvipsPreferOutline" = xtrue; then
- $link_cmd psfonts_t1.map psfonts.map
+ symlink_or_copy psfonts_t1.map psfonts.map
else
- $link_cmd psfonts_pk.map psfonts.map
+ symlink_or_copy psfonts_pk.map psfonts.map
fi
cd "$pdftexoutputdir" || exit 1
rm -f pdftex.map
if test "x$pdftexDownloadBase14" = xtrue; then
- $link_cmd pdftex_dl14.map pdftex.map
+ symlink_or_copy pdftex_dl14.map pdftex.map
else
- $link_cmd pdftex_ndl14.map pdftex.map
+ symlink_or_copy pdftex_ndl14.map pdftex.map
fi
cd "$dvipdfmoutputdir" || exit 1
rm -f dvipdfm.map
if test "x$dvipdfmDownloadBase14" = xtrue; then
- $link_cmd dvipdfm_dl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_dl14.map dvipdfm.map
else
- $link_cmd dvipdfm_ndl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_ndl14.map dvipdfm.map
fi
)
}
@@ -894,7 +914,7 @@ processOptions()
--cnffile=*)
cfgparam=1; cnfFile=`echo "$1" | sed 's/--cnffile=//'`;;
--copy)
- link_cmd="cp";;
+ copy=true;;
--dry-run|-n)
chicken_mode=true;;
--dvipsoutputdir)
@@ -1301,7 +1321,9 @@ main()
log=
chicken_mode=false
link_cmd="ln -s"
-
+ copy_cmd="cp"
+ copy=false
+
cfgparam=
outputdirparam=
cfgmaint=
diff --git a/Master/bin/powerpc-linux/updmap b/Master/bin/powerpc-linux/updmap
index f55fd95a84c..e09c817451b 100755
--- a/Master/bin/powerpc-linux/updmap
+++ b/Master/bin/powerpc-linux/updmap
@@ -5,6 +5,8 @@
###############################################################################
# program history:
+# Sun May 25 21:05:32 CEST 2008 (Reinhard Kotucha)
+# add function symlink_or_copy needed by tl-portable.
# Post-te retirement, now maintained in TeX Live; see
# Build/texk/tetex/ChangeLog for further changes.
# Fr Jul 22 07:22:38 CEST 2005
@@ -92,7 +94,7 @@ export PATH
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
# the version string
-version=1210234762 # seconds since `00:00:00 1970-01-01 UTC'
+version=1211742332 # seconds since `00:00:00 1970-01-01 UTC'
# date '+%s' (with GNU date)
#
@@ -211,6 +213,24 @@ cfgval()
}
###############################################################################
+# symlink_or_copy()
+# if --copy is not set, try to create a symlink. If this fails, write
+# a message to stderr and copy the file instead.
+###############################################################################
+symlink_or_copy()
+{
+ if $copy; then
+ $copy_cmd "$1" "$2"
+ else
+ $link_cmd "$1" "$2" ||
+ {
+ echo "Creating symbolic link failed, the file is copied instead." 1>&2 &&
+ $copy_cmd "$1" "$2"
+ }
+ fi
+}
+
+###############################################################################
# setupSymlinks()
# set symlink (or copy)
# for psfonts.map according to dvipsPreferOutline variable,
@@ -222,25 +242,25 @@ setupSymlinks()
cd "$dvipsoutputdir" || exit 1
rm -f psfonts.map
if test "x$dvipsPreferOutline" = xtrue; then
- $link_cmd psfonts_t1.map psfonts.map
+ symlink_or_copy psfonts_t1.map psfonts.map
else
- $link_cmd psfonts_pk.map psfonts.map
+ symlink_or_copy psfonts_pk.map psfonts.map
fi
cd "$pdftexoutputdir" || exit 1
rm -f pdftex.map
if test "x$pdftexDownloadBase14" = xtrue; then
- $link_cmd pdftex_dl14.map pdftex.map
+ symlink_or_copy pdftex_dl14.map pdftex.map
else
- $link_cmd pdftex_ndl14.map pdftex.map
+ symlink_or_copy pdftex_ndl14.map pdftex.map
fi
cd "$dvipdfmoutputdir" || exit 1
rm -f dvipdfm.map
if test "x$dvipdfmDownloadBase14" = xtrue; then
- $link_cmd dvipdfm_dl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_dl14.map dvipdfm.map
else
- $link_cmd dvipdfm_ndl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_ndl14.map dvipdfm.map
fi
)
}
@@ -894,7 +914,7 @@ processOptions()
--cnffile=*)
cfgparam=1; cnfFile=`echo "$1" | sed 's/--cnffile=//'`;;
--copy)
- link_cmd="cp";;
+ copy=true;;
--dry-run|-n)
chicken_mode=true;;
--dvipsoutputdir)
@@ -1301,7 +1321,9 @@ main()
log=
chicken_mode=false
link_cmd="ln -s"
-
+ copy_cmd="cp"
+ copy=false
+
cfgparam=
outputdirparam=
cfgmaint=
diff --git a/Master/bin/sparc-linux/updmap b/Master/bin/sparc-linux/updmap
index f55fd95a84c..e09c817451b 100755
--- a/Master/bin/sparc-linux/updmap
+++ b/Master/bin/sparc-linux/updmap
@@ -5,6 +5,8 @@
###############################################################################
# program history:
+# Sun May 25 21:05:32 CEST 2008 (Reinhard Kotucha)
+# add function symlink_or_copy needed by tl-portable.
# Post-te retirement, now maintained in TeX Live; see
# Build/texk/tetex/ChangeLog for further changes.
# Fr Jul 22 07:22:38 CEST 2005
@@ -92,7 +94,7 @@ export PATH
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
# the version string
-version=1210234762 # seconds since `00:00:00 1970-01-01 UTC'
+version=1211742332 # seconds since `00:00:00 1970-01-01 UTC'
# date '+%s' (with GNU date)
#
@@ -211,6 +213,24 @@ cfgval()
}
###############################################################################
+# symlink_or_copy()
+# if --copy is not set, try to create a symlink. If this fails, write
+# a message to stderr and copy the file instead.
+###############################################################################
+symlink_or_copy()
+{
+ if $copy; then
+ $copy_cmd "$1" "$2"
+ else
+ $link_cmd "$1" "$2" ||
+ {
+ echo "Creating symbolic link failed, the file is copied instead." 1>&2 &&
+ $copy_cmd "$1" "$2"
+ }
+ fi
+}
+
+###############################################################################
# setupSymlinks()
# set symlink (or copy)
# for psfonts.map according to dvipsPreferOutline variable,
@@ -222,25 +242,25 @@ setupSymlinks()
cd "$dvipsoutputdir" || exit 1
rm -f psfonts.map
if test "x$dvipsPreferOutline" = xtrue; then
- $link_cmd psfonts_t1.map psfonts.map
+ symlink_or_copy psfonts_t1.map psfonts.map
else
- $link_cmd psfonts_pk.map psfonts.map
+ symlink_or_copy psfonts_pk.map psfonts.map
fi
cd "$pdftexoutputdir" || exit 1
rm -f pdftex.map
if test "x$pdftexDownloadBase14" = xtrue; then
- $link_cmd pdftex_dl14.map pdftex.map
+ symlink_or_copy pdftex_dl14.map pdftex.map
else
- $link_cmd pdftex_ndl14.map pdftex.map
+ symlink_or_copy pdftex_ndl14.map pdftex.map
fi
cd "$dvipdfmoutputdir" || exit 1
rm -f dvipdfm.map
if test "x$dvipdfmDownloadBase14" = xtrue; then
- $link_cmd dvipdfm_dl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_dl14.map dvipdfm.map
else
- $link_cmd dvipdfm_ndl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_ndl14.map dvipdfm.map
fi
)
}
@@ -894,7 +914,7 @@ processOptions()
--cnffile=*)
cfgparam=1; cnfFile=`echo "$1" | sed 's/--cnffile=//'`;;
--copy)
- link_cmd="cp";;
+ copy=true;;
--dry-run|-n)
chicken_mode=true;;
--dvipsoutputdir)
@@ -1301,7 +1321,9 @@ main()
log=
chicken_mode=false
link_cmd="ln -s"
-
+ copy_cmd="cp"
+ copy=false
+
cfgparam=
outputdirparam=
cfgmaint=
diff --git a/Master/bin/sparc-solaris/updmap b/Master/bin/sparc-solaris/updmap
index f55fd95a84c..e09c817451b 100755
--- a/Master/bin/sparc-solaris/updmap
+++ b/Master/bin/sparc-solaris/updmap
@@ -5,6 +5,8 @@
###############################################################################
# program history:
+# Sun May 25 21:05:32 CEST 2008 (Reinhard Kotucha)
+# add function symlink_or_copy needed by tl-portable.
# Post-te retirement, now maintained in TeX Live; see
# Build/texk/tetex/ChangeLog for further changes.
# Fr Jul 22 07:22:38 CEST 2005
@@ -92,7 +94,7 @@ export PATH
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
# the version string
-version=1210234762 # seconds since `00:00:00 1970-01-01 UTC'
+version=1211742332 # seconds since `00:00:00 1970-01-01 UTC'
# date '+%s' (with GNU date)
#
@@ -211,6 +213,24 @@ cfgval()
}
###############################################################################
+# symlink_or_copy()
+# if --copy is not set, try to create a symlink. If this fails, write
+# a message to stderr and copy the file instead.
+###############################################################################
+symlink_or_copy()
+{
+ if $copy; then
+ $copy_cmd "$1" "$2"
+ else
+ $link_cmd "$1" "$2" ||
+ {
+ echo "Creating symbolic link failed, the file is copied instead." 1>&2 &&
+ $copy_cmd "$1" "$2"
+ }
+ fi
+}
+
+###############################################################################
# setupSymlinks()
# set symlink (or copy)
# for psfonts.map according to dvipsPreferOutline variable,
@@ -222,25 +242,25 @@ setupSymlinks()
cd "$dvipsoutputdir" || exit 1
rm -f psfonts.map
if test "x$dvipsPreferOutline" = xtrue; then
- $link_cmd psfonts_t1.map psfonts.map
+ symlink_or_copy psfonts_t1.map psfonts.map
else
- $link_cmd psfonts_pk.map psfonts.map
+ symlink_or_copy psfonts_pk.map psfonts.map
fi
cd "$pdftexoutputdir" || exit 1
rm -f pdftex.map
if test "x$pdftexDownloadBase14" = xtrue; then
- $link_cmd pdftex_dl14.map pdftex.map
+ symlink_or_copy pdftex_dl14.map pdftex.map
else
- $link_cmd pdftex_ndl14.map pdftex.map
+ symlink_or_copy pdftex_ndl14.map pdftex.map
fi
cd "$dvipdfmoutputdir" || exit 1
rm -f dvipdfm.map
if test "x$dvipdfmDownloadBase14" = xtrue; then
- $link_cmd dvipdfm_dl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_dl14.map dvipdfm.map
else
- $link_cmd dvipdfm_ndl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_ndl14.map dvipdfm.map
fi
)
}
@@ -894,7 +914,7 @@ processOptions()
--cnffile=*)
cfgparam=1; cnfFile=`echo "$1" | sed 's/--cnffile=//'`;;
--copy)
- link_cmd="cp";;
+ copy=true;;
--dry-run|-n)
chicken_mode=true;;
--dvipsoutputdir)
@@ -1301,7 +1321,9 @@ main()
log=
chicken_mode=false
link_cmd="ln -s"
-
+ copy_cmd="cp"
+ copy=false
+
cfgparam=
outputdirparam=
cfgmaint=
diff --git a/Master/bin/x86_64-linux/updmap b/Master/bin/x86_64-linux/updmap
index f55fd95a84c..e09c817451b 100755
--- a/Master/bin/x86_64-linux/updmap
+++ b/Master/bin/x86_64-linux/updmap
@@ -5,6 +5,8 @@
###############################################################################
# program history:
+# Sun May 25 21:05:32 CEST 2008 (Reinhard Kotucha)
+# add function symlink_or_copy needed by tl-portable.
# Post-te retirement, now maintained in TeX Live; see
# Build/texk/tetex/ChangeLog for further changes.
# Fr Jul 22 07:22:38 CEST 2005
@@ -92,7 +94,7 @@ export PATH
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
# the version string
-version=1210234762 # seconds since `00:00:00 1970-01-01 UTC'
+version=1211742332 # seconds since `00:00:00 1970-01-01 UTC'
# date '+%s' (with GNU date)
#
@@ -211,6 +213,24 @@ cfgval()
}
###############################################################################
+# symlink_or_copy()
+# if --copy is not set, try to create a symlink. If this fails, write
+# a message to stderr and copy the file instead.
+###############################################################################
+symlink_or_copy()
+{
+ if $copy; then
+ $copy_cmd "$1" "$2"
+ else
+ $link_cmd "$1" "$2" ||
+ {
+ echo "Creating symbolic link failed, the file is copied instead." 1>&2 &&
+ $copy_cmd "$1" "$2"
+ }
+ fi
+}
+
+###############################################################################
# setupSymlinks()
# set symlink (or copy)
# for psfonts.map according to dvipsPreferOutline variable,
@@ -222,25 +242,25 @@ setupSymlinks()
cd "$dvipsoutputdir" || exit 1
rm -f psfonts.map
if test "x$dvipsPreferOutline" = xtrue; then
- $link_cmd psfonts_t1.map psfonts.map
+ symlink_or_copy psfonts_t1.map psfonts.map
else
- $link_cmd psfonts_pk.map psfonts.map
+ symlink_or_copy psfonts_pk.map psfonts.map
fi
cd "$pdftexoutputdir" || exit 1
rm -f pdftex.map
if test "x$pdftexDownloadBase14" = xtrue; then
- $link_cmd pdftex_dl14.map pdftex.map
+ symlink_or_copy pdftex_dl14.map pdftex.map
else
- $link_cmd pdftex_ndl14.map pdftex.map
+ symlink_or_copy pdftex_ndl14.map pdftex.map
fi
cd "$dvipdfmoutputdir" || exit 1
rm -f dvipdfm.map
if test "x$dvipdfmDownloadBase14" = xtrue; then
- $link_cmd dvipdfm_dl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_dl14.map dvipdfm.map
else
- $link_cmd dvipdfm_ndl14.map dvipdfm.map
+ symlink_or_copy dvipdfm_ndl14.map dvipdfm.map
fi
)
}
@@ -894,7 +914,7 @@ processOptions()
--cnffile=*)
cfgparam=1; cnfFile=`echo "$1" | sed 's/--cnffile=//'`;;
--copy)
- link_cmd="cp";;
+ copy=true;;
--dry-run|-n)
chicken_mode=true;;
--dvipsoutputdir)
@@ -1301,7 +1321,9 @@ main()
log=
chicken_mode=false
link_cmd="ln -s"
-
+ copy_cmd="cp"
+ copy=false
+
cfgparam=
outputdirparam=
cfgmaint=