/[baselayout]/trunk/sh/functions.sh
Gentoo

Diff of /trunk/sh/functions.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2649 Revision 2650
4# Please keep this useable by every shell in portage 4# Please keep this useable by every shell in portage
5 5
6RC_GOT_FUNCTIONS="yes" 6RC_GOT_FUNCTIONS="yes"
7 7
8eindent() { 8eindent() {
9 if [ -n "${RC_EBUFFER}" ] ; then
10 "${RC_LIBDIR}"/bin/eindent
11 else
12 RC_EINDENT=$((${RC_EINDENT:-0} + 2)) 9 RC_EINDENT=$((${RC_EINDENT:-0} + 2))
13 [ "${RC_EINDENT}" -gt 40 ] && RC_EINDENT=40 10 [ "${RC_EINDENT}" -gt 40 ] && RC_EINDENT=40
14 export RC_EINDENT 11 export RC_EINDENT
15 fi
16} 12}
17 13
18eoutdent() { 14eoutdent() {
19 if [ -n "${RC_EBUFFER}" ] ; then
20 "${RC_LIBDIR}"/bin/eoutdent
21 else
22 RC_EINDENT=$((${RC_EINDENT:-0} - 2)) 15 RC_EINDENT=$((${RC_EINDENT:-0} - 2))
23 [ "${RC_EINDENT}" -lt 0 ] && RC_EINDENT=0 16 [ "${RC_EINDENT}" -lt 0 ] && RC_EINDENT=0
24 fi
25 return 0 17 return 0
26} 18}
27 19
28# void esyslog(char* priority, char* tag, char* message) 20# void esyslog(char* priority, char* tag, char* message)
29# 21#

Legend:
Removed from v.2649  
changed lines
  Added in v.2650

  ViewVC Help
Powered by ViewVC 1.1.20