Changeset 8641ba2 in freewrt


Ignore:
Timestamp:
Jul 3, 2006, 2:48:48 PM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
3b38709
Parents:
baf209a
Message:

mksh R26e, and sync with MirOS src/etc/profile,v 1.23
and ports/shells/mksh/pkg/DESCR,v 1.2 (for $PS1) thus
saving a few bytes

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

Location:
package/mksh
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • package/mksh/Makefile

    rbaf209a r8641ba2  
    44
    55PKG_NAME=               mksh
    6 PKG_VERSION=            27.3
     6PKG_VERSION=            27.4
    77PKG_RELEASE=            1
    8 PKG_SOURCE=             ${PKG_NAME}-R27d.cpio.gz
    9 PKG_MD5SUM=             c35648b7e8842e8d9012570b3f148189
     8PKG_SOURCE=             ${PKG_NAME}-R27e.cpio.gz
     9PKG_MD5SUM=             2eeb5c5fab32cc7a20ca3c7c2c6fda46
    1010
    1111PKG_SOURCE_URL=         http://mirbsd.mirsolutions.de/MirOS/dist/mir/mksh/ \
  • package/mksh/ipkg/mksh.postinst

    rbaf209a r8641ba2  
    99        echo 'if test -n "$KSH_VERSION"; then' >>${IPKG_INSTROOT}/etc/profile
    1010        echo '  [[ -z $HOSTNAME ]] && export HOSTNAME=$(</proc/sys/kernel/hostname)' >>${IPKG_INSTROOT}/etc/profile
    11         echo '  export PS1='\''$(((rv=$?)) && print "$rv|")'\''"\${USER}@$HOSTNAME:"'\''$(' >>${IPKG_INSTROOT}/etc/profile
     11        echo '  export PS1='\''$(((rv=$?)) && print $rv\|)'\''"\$USER@${HOSTNAME:-noFQDN}:"'\''$(' >>${IPKG_INSTROOT}/etc/profile
    1212        echo '          typeset tilde=~ path=${1:-${PWD:-$(pwd)}}' >>${IPKG_INSTROOT}/etc/profile
    1313        echo '          typeset dots= path2=${path#$tilde}' >>${IPKG_INSTROOT}/etc/profile
    14         echo '          [[ $path2 = $path || -z $tilde || $tilde = / ]] || path='~'$path2' >>${IPKG_INSTROOT}/etc/profile
     14        echo '          [[ $path2 = $path || -z $tilde || $tilde = / ]] || path=\~$path2' >>${IPKG_INSTROOT}/etc/profile
    1515        echo '          let cmax="${COLUMNS:-80} / 3"' >>${IPKG_INSTROOT}/etc/profile
    1616        echo '          (( cmax < 7 )) && let cmax=7' >>${IPKG_INSTROOT}/etc/profile
     
    2424        echo '                  fi' >>${IPKG_INSTROOT}/etc/profile
    2525        echo '          done' >>${IPKG_INSTROOT}/etc/profile
    26         echo '          print -nr -- "$dots$path")'\''" $(if [[ $(id -u) -eq 0 ]]; then' >>${IPKG_INSTROOT}/etc/profile
    27         echo '                  echo -n '\''#'\''; else echo -n '\''$'\''; fi) "' >>${IPKG_INSTROOT}/etc/profile
     26        echo '          print -nr -- "$dots$path")'\''" $(if (( $(id -u) )); then' >>${IPKG_INSTROOT}/etc/profile
     27        echo '                  print -n \$; else print -n \#; fi) "' >>${IPKG_INSTROOT}/etc/profile
    2828        echo 'fi' >>${IPKG_INSTROOT}/etc/profile
    2929fi
Note: See TracChangeset for help on using the changeset viewer.