some simple fixes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@9470 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2005-01-12 17:18:16 +00:00
parent 3ed36e2552
commit cda9ff0e90
7 changed files with 114 additions and 16 deletions

View File

@ -1,3 +1,12 @@
2005-01-12 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* mkinstalldirs: take a newer version from HEAD.
* relyx_configure.in:
* relyx_configure.ac: make sure the prefix is correctly quoted.
* lyxinclude.m4: fix default win32 prefix.
2005-01-06 Jean-Marc Lasgouttes <lasgouttes@lyx.org> 2005-01-06 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* configure.ac: * configure.ac:

View File

@ -678,7 +678,7 @@ case $lyx_use_packaging in
datadir='${prefix}/Contents/Resources' datadir='${prefix}/Contents/Resources'
mandir='${prefix}/Contents/Resources/man' ;; mandir='${prefix}/Contents/Resources/man' ;;
windows) AC_DEFINE(USE_WINDOWS_PACKAGING, 1, [Define to 1 if LyX should use a Windows-style file layout]) windows) AC_DEFINE(USE_WINDOWS_PACKAGING, 1, [Define to 1 if LyX should use a Windows-style file layout])
default_prefix="'C:Program Files/LyX'" default_prefix="'C:/Program Files/LyX'"
bindir='${prefix}/bin' bindir='${prefix}/bin'
datadir='${prefix}/Resources' datadir='${prefix}/Resources'
mandir='${prefix}/Resources/man' ;; mandir='${prefix}/Resources/man' ;;

View File

@ -5,28 +5,107 @@
# Public domain # Public domain
errstatus=0 errstatus=0
dirmode=""
usage="\
Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
# process command line arguments
while test $# -gt 0 ; do
case $1 in
-h | --help | --h*) # -h for help
echo "$usage" 1>&2
exit 0
;;
-m) # -m PERM arg
shift
test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
dirmode=$1
shift
;;
--) # stop option processing
shift
break
;;
-*) # unknown option
echo "$usage" 1>&2
exit 1
;;
*) # first non-opt arg
break
;;
esac
done
for file for file
do do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` if test -d "$file"; then
shift shift
else
break
fi
done
pathcomp= case $# in
for d in ${1+"$@"} ; do 0) exit 0 ;;
pathcomp="$pathcomp$d" esac
case "$pathcomp" in
-* ) pathcomp=./$pathcomp ;;
esac
if test ! -d "$pathcomp"; then case $dirmode in
echo "mkdir $pathcomp" 1>&2 '')
mkdir "$pathcomp" || errstatus=$? if mkdir -p -- . 2>/dev/null; then
fi echo "mkdir -p -- $*"
exec mkdir -p -- "$@"
fi
;;
*)
if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
echo "mkdir -m $dirmode -p -- $*"
exec mkdir -m "$dirmode" -p -- "$@"
fi
;;
esac
pathcomp="$pathcomp/" for file
done do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift
pathcomp=
for d
do
pathcomp="$pathcomp$d"
case $pathcomp in
-*) pathcomp=./$pathcomp ;;
esac
if test ! -d "$pathcomp"; then
echo "mkdir $pathcomp"
mkdir "$pathcomp" || lasterr=$?
if test ! -d "$pathcomp"; then
errstatus=$lasterr
else
if test ! -z "$dirmode"; then
echo "chmod $dirmode $pathcomp"
lasterr=""
chmod "$dirmode" "$pathcomp" || lasterr=$?
if test ! -z "$lasterr"; then
errstatus=$lasterr
fi
fi
fi
fi
pathcomp="$pathcomp/"
done
done done
exit $errstatus exit $errstatus
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# End:
# mkinstalldirs ends here # mkinstalldirs ends here

View File

@ -24,6 +24,8 @@ test -x reLyX && rm -f reLyX
# fix the value of the prefixes. # fix the value of the prefixes.
test "x$prefix" = xNONE && prefix=$ac_default_prefix test "x$prefix" = xNONE && prefix=$ac_default_prefix
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
# make sure prefix is correctly quoted
prefix="'$prefix'"
# we need to expand ${datadir} to put it into the reLyX wrapper. # we need to expand ${datadir} to put it into the reLyX wrapper.
LYX_DIR=`eval "echo \`eval \"echo ${datadir}/${PACKAGE}\"\`"` LYX_DIR=`eval "echo \`eval \"echo ${datadir}/${PACKAGE}\"\`"`

View File

@ -24,6 +24,8 @@ test -x reLyX && rm -f reLyX
# fix the value of the prefixes. # fix the value of the prefixes.
test "x$prefix" = xNONE && prefix=$ac_default_prefix test "x$prefix" = xNONE && prefix=$ac_default_prefix
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
# make sure prefix is correctly quoted
prefix="'$prefix'"
# we need to expand ${datadir} to put it into the reLyX wrapper. # we need to expand ${datadir} to put it into the reLyX wrapper.
LYX_DIR=`eval "echo \`eval \"echo ${datadir}/${PACKAGE}\"\`"` LYX_DIR=`eval "echo \`eval \"echo ${datadir}/${PACKAGE}\"\`"`

View File

@ -1,3 +1,9 @@
2005-01-12 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* reLyX/configure.ac: make sure the prefix is correctly quoted.
* configure.m4: small visual fix to the search for groff.
2005-01-06 Angus Leeming <leeming@lyx.org> 2005-01-06 Angus Leeming <leeming@lyx.org>
* Makefile.am: remove mention of configure.cmd. * Makefile.am: remove mention of configure.cmd.

View File

@ -285,7 +285,7 @@ lyxpreview_to_bitmap_command="lyxpreview2ppm.py"
# Search a *roff program (used to translate tables in ASCII export) # Search a *roff program (used to translate tables in ASCII export)
LYXRC_PROG([for a *roff formatter], \ascii_roff_command, dnl LYXRC_PROG([for a *roff formatter], \ascii_roff_command, dnl
'groff -t -Tlatin1 $$FName' nroff,dnl "groff -t -Tlatin1 \$\$FName" nroff,dnl
test "$prog" = "nroff" && prog='tbl $$FName | nroff') test "$prog" = "nroff" && prog='tbl $$FName | nroff')
# Search the ChkTeX program # Search the ChkTeX program