+2000-07-10 Akim Demaille <akim@epita.fr>
+
+ * autoreconf.sh (--install, --symlink): New options.
+
2000-07-10 Akim Demaille <akim@epita.fr>
* autoreconf.sh (dots, aclocal_m4, acconfig_h): Remove.
-v, --verbose verbosely report processing
-d, --debug don't remove temporary files
-f, --force consider every files are obsolete
+ -i, --install copy missing auxiliary files
+ --symlink instead of copying, install symbolic links
+
+The option \`--install' is similar to the option \`--add-missing' in
+other tools.
Library directories:
-m, --macrodir=ACDIR Autoconf's macro files location (rarely needed)
debug=false
dir=`echo "$0" | sed -e 's/[^/]*$//'`
force=false
+# --install -- as --add-missing in other tools.
+install=false
localdir=.
# m4dir -- local Autoconf extensions. Typically `m4'.
m4dir=
+# symlink -- when --install, use symlinks instead.
+symlink=false
verbose=:
# Looking for autoconf.
--force | -f )
force=:; shift ;;
+ --install | -i )
+ install=:; shift ;;
+ --symlink )
+ symlink=:; shift ;;
+
# Options of Automake.
--cygnus | --foreign | --gnits | --gnu | --include-deps | -i )
automake="$automake $1"; shift ;;
fi
# Dispatch autoreconf's option to the tools.
-autoconf="$autoconf -l $localdir `$verbose --verbose`"
-autoheader="$autoheader -l $localdir `$verbose --verbose`"
+# --localdir
+autoconf="$autoconf -l $localdir"
+autoheader="$autoheader -l $localdir"
+# --force
$force || automake="$automake --no-force"
+# --verbose
+autoconf="$autoconf `$verbose --verbose`"
+autoheader="$autoheader `$verbose --verbose`"
automake="$automake `$verbose --verbose`"
aclocal="$aclocal `$verbose --verbose`"
+# --macrodir
export AC_MACRODIR
+# --install and --symlink
+if $install; then
+ automake="$automake --add-missing `$symlink || echo --copy`"
+fi
+
# Trap on 0 to stop playing with `rm'.
$debug ||
test -f "Makefile.am" &&
uses_automake=:
if $uses_automake &&
- { $force || $update Makefile.in Makefile.am; } then
+ { $force || $install || $update Makefile.in Makefile.am; } then
$verbose running $automake in $dir >&2
$automake
fi
-v, --verbose verbosely report processing
-d, --debug don't remove temporary files
-f, --force consider every files are obsolete
+ -i, --install copy missing auxiliary files
+ --symlink instead of copying, install symbolic links
+
+The option \`--install' is similar to the option \`--add-missing' in
+other tools.
Library directories:
-m, --macrodir=ACDIR Autoconf's macro files location (rarely needed)
debug=false
dir=`echo "$0" | sed -e 's/[^/]*$//'`
force=false
+# --install -- as --add-missing in other tools.
+install=false
localdir=.
# m4dir -- local Autoconf extensions. Typically `m4'.
m4dir=
+# symlink -- when --install, use symlinks instead.
+symlink=false
verbose=:
# Looking for autoconf.
--force | -f )
force=:; shift ;;
+ --install | -i )
+ install=:; shift ;;
+ --symlink )
+ symlink=:; shift ;;
+
# Options of Automake.
--cygnus | --foreign | --gnits | --gnu | --include-deps | -i )
automake="$automake $1"; shift ;;
fi
# Dispatch autoreconf's option to the tools.
-autoconf="$autoconf -l $localdir `$verbose --verbose`"
-autoheader="$autoheader -l $localdir `$verbose --verbose`"
+# --localdir
+autoconf="$autoconf -l $localdir"
+autoheader="$autoheader -l $localdir"
+# --force
$force || automake="$automake --no-force"
+# --verbose
+autoconf="$autoconf `$verbose --verbose`"
+autoheader="$autoheader `$verbose --verbose`"
automake="$automake `$verbose --verbose`"
aclocal="$aclocal `$verbose --verbose`"
+# --macrodir
export AC_MACRODIR
+# --install and --symlink
+if $install; then
+ automake="$automake --add-missing `$symlink || echo --copy`"
+fi
+
# Trap on 0 to stop playing with `rm'.
$debug ||
test -f "Makefile.am" &&
uses_automake=:
if $uses_automake &&
- { $force || $update Makefile.in Makefile.am; } then
+ { $force || $install || $update Makefile.in Makefile.am; } then
$verbose running $automake in $dir >&2
$automake
fi
-v, --verbose verbosely report processing
-d, --debug don't remove temporary files
-f, --force consider every files are obsolete
+ -i, --install copy missing auxiliary files
+ --symlink instead of copying, install symbolic links
+
+The option \`--install' is similar to the option \`--add-missing' in
+other tools.
Library directories:
-m, --macrodir=ACDIR Autoconf's macro files location (rarely needed)
debug=false
dir=`echo "$0" | sed -e 's/[^/]*$//'`
force=false
+# --install -- as --add-missing in other tools.
+install=false
localdir=.
# m4dir -- local Autoconf extensions. Typically `m4'.
m4dir=
+# symlink -- when --install, use symlinks instead.
+symlink=false
verbose=:
# Looking for autoconf.
--force | -f )
force=:; shift ;;
+ --install | -i )
+ install=:; shift ;;
+ --symlink )
+ symlink=:; shift ;;
+
# Options of Automake.
--cygnus | --foreign | --gnits | --gnu | --include-deps | -i )
automake="$automake $1"; shift ;;
fi
# Dispatch autoreconf's option to the tools.
-autoconf="$autoconf -l $localdir `$verbose --verbose`"
-autoheader="$autoheader -l $localdir `$verbose --verbose`"
+# --localdir
+autoconf="$autoconf -l $localdir"
+autoheader="$autoheader -l $localdir"
+# --force
$force || automake="$automake --no-force"
+# --verbose
+autoconf="$autoconf `$verbose --verbose`"
+autoheader="$autoheader `$verbose --verbose`"
automake="$automake `$verbose --verbose`"
aclocal="$aclocal `$verbose --verbose`"
+# --macrodir
export AC_MACRODIR
+# --install and --symlink
+if $install; then
+ automake="$automake --add-missing `$symlink || echo --copy`"
+fi
+
# Trap on 0 to stop playing with `rm'.
$debug ||
test -f "Makefile.am" &&
uses_automake=:
if $uses_automake &&
- { $force || $update Makefile.in Makefile.am; } then
+ { $force || $install || $update Makefile.in Makefile.am; } then
$verbose running $automake in $dir >&2
$automake
fi