head 1.2; access; symbols OPENPKG_E1_MP_HEAD:1.2 OPENPKG_E1_MP:1.2 OPENPKG_E1_MP_2_STABLE:1.2 OPENPKG_E1_FP:1.2 OPENPKG_2_STABLE_MP:1.2 OPENPKG_2_STABLE_20061018:1.2 OPENPKG_2_STABLE_20060622:1.2 OPENPKG_2_STABLE:1.2.0.8 OPENPKG_2_STABLE_BP:1.2 OPENPKG_2_5_RELEASE:1.2 OPENPKG_2_5_SOLID:1.2.0.6 OPENPKG_2_5_SOLID_BP:1.2 OPENPKG_2_4_RELEASE:1.2 OPENPKG_2_4_SOLID:1.2.0.4 OPENPKG_2_4_SOLID_BP:1.2 OPENPKG_CW_FP:1.2 OPENPKG_2_3_RELEASE:1.2 OPENPKG_2_3_SOLID:1.2.0.2 OPENPKG_2_3_SOLID_BP:1.2; locks; strict; comment @# @; 1.2 date 2005.01.24.14.44.24; author rse; state Exp; branches; next 1.1; 1.1 date 2005.01.24.13.32.32; author rse; state Exp; branches; next ; desc @@ 1.2 log @make sure we can update the scripts @ text @#!/bin/sh ## ## config.sh -- trivial GNU config.guess/config.sub frontend ## # path configuration config_dir="@@l_prefix@@/libexec/config" config_guess="$config_dir/config.guess" config_sub="$config_dir/config.sub" # usage if [ $# -eq 0 ]; then echo "$0 guess [-r]" echo "$0 install [directory]" exit 0 fi # dispatch commands cmd="$1"; shift case "$cmd" in guess ) # guess platform configuration raw=no if [ ".$1" = ".-r" ]; then shift raw=yes fi config=`sh $config_guess` if [ $raw = no ]; then config=`sh $config_sub "$config"` fi echo "$config" ;; install ) # install guessing scripts if [ $# -ne 1 ]; then dir="." else dir="$1"; shift fi if [ -f $dir/config.guess ]; then echo "updating $dir/config.guess" chmod u+w $dir/config.guess else echo "creating $dir/config.guess" fi cp $config_guess $dir/config.guess chmod a+x $dir/config.guess if [ -f $dir/config.sub ]; then echo "updating $dir/config.sub" chmod u+w $dir/config.sub else echo "creating $dir/config.sub" fi cp $config_sub $dir/config.sub chmod a+x $dir/config.sub ;; esac @ 1.1 log @new package: config 20050124 (GNU Platform Configuration Guessing) @ text @d43 1 d51 1 @