Changeset bbe41f83 in freewrt for scripts/scan-tools.sh


Ignore:
Timestamp:
Jul 2, 2007, 8:17:28 PM (18 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
50922a6
Parents:
727dae0d
Message:

better

git-svn-id: svn://www.freewrt.org/trunk/freewrt@3086 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/scan-tools.sh

    r727dae0d rbbe41f83  
    439439
    440440if grep USE_TOOLS_MKSH=1 $topdir/lbin/prereq.mk >/dev/null 2>&1; then
    441         echo "MBSH:=$topdir/lbin/mksh" >>$topdir/lbin/prereq.mk
     441        echo "MBSH:=$topdir/lbin/mkshw" >>$topdir/lbin/prereq.mk
     442        rm -f $topdir/lbin/mkshw
     443        cat >$topdir/lbin/mkshw <<-EOF
     444                #!/bin/sh
     445                if [[ -x $topdir/lbin/mksh ]]; then
     446                        exec $topdir/lbin/mkshw "\$@"
     447                else
     448                        exec bash "\$@"
     449                fi
     450        EOF
     451        chmod +x $topdir/lbin/mkshw
    442452elif which mksh >/dev/null 2>&1; then
    443453        echo "MBSH:=$(which mksh)" >>$topdir/lbin/prereq.mk
Note: See TracChangeset for help on using the changeset viewer.