Magellan Linux

Diff of /smage/branches/alx-0_6_0/include/mtools.sminc

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

revision 3360 by niro, Sat Jan 22 23:35:03 2011 UTC revision 3361 by niro, Tue Mar 27 12:09:46 2012 UTC
# Line 587  minstalllib() Line 587  minstalllib()
587   local dest   local dest
588   local verbose="-v"   local verbose="-v"
589    
590   # check for busybox as it doesn'tz support 'ln -v'   # check for busybox as it doesn't support 'ln -v'
591   [[ $(readlink $(which ln)) = */busybox ]] && verbose=""   [[ $(readlink $(which ln)) = */busybox ]] && verbose=""
592    
593   [[ -z $1 ]] && die "No file given"   [[ -z $1 ]] && die "No file given"
# Line 636  mcopy() Line 636  mcopy()
636   # recursive   # recursive
637   if [[ $1 = -r ]] || [[ $1 = -R ]]   if [[ $1 = -r ]] || [[ $1 = -R ]]
638   then   then
639   opts="--recursive"   opts="-R"
640   source="$2"   source="$2"
641   dest="$3"   dest="$3"
642   fi   fi
# Line 644  mcopy() Line 644  mcopy()
644   # recursive   # recursive
645   if [[ $1 = -rf ]] || [[ $1 = -fr ]] || [[ $1 = -Rf ]] || [[ $1 = -fR ]]   if [[ $1 = -rf ]] || [[ $1 = -fr ]] || [[ $1 = -Rf ]] || [[ $1 = -fR ]]
646   then   then
647   opts="--recursive --force"   opts="-R -f"
648   source="$2"   source="$2"
649   dest="$3"   dest="$3"
650   fi   fi
# Line 664  mmove() Line 664  mmove()
664   # force   # force
665   if [[ $1 = -f ]]   if [[ $1 = -f ]]
666   then   then
667   opts="--force"   opts="-f"
668   source="$2"   source="$2"
669   dest="$3"   dest="$3"
670   fi   fi
# Line 710  mchown() Line 710  mchown()
710   # recursive   # recursive
711   if [[ $1 = -r ]] || [[ $1 = -R ]]   if [[ $1 = -r ]] || [[ $1 = -R ]]
712   then   then
713   local recursive="--recursive"   local recursive="-R"
714   local owner="$2"   local owner="$2"
715   local path="$3"   local path="$3"
716   fi   fi
# Line 730  mchmod() Line 730  mchmod()
730   # recursive   # recursive
731   if [[ $1 = -r ]] || [[ $1 = -R ]]   if [[ $1 = -r ]] || [[ $1 = -R ]]
732   then   then
733   local recursive="--recursive"   local recursive="-R"
734   local posix="$2"   local posix="$2"
735   local path="$3"   local path="$3"
736   fi   fi

Legend:
Removed from v.3360  
changed lines
  Added in v.3361