Magellan Linux

Diff of /branches/R11-unstable/include/mtools.sminc

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

revision 1113 by niro, Wed Apr 22 18:57:15 2009 UTC revision 2031 by niro, Fri Jun 12 10:56:41 2009 UTC
# Line 137  minstalletc() Line 137  minstalletc()
137   install -v -m 0644 -o root -g root ${file} ${BINDIR}/${destdir}/${etcfile} || die   install -v -m 0644 -o root -g root ${file} ${BINDIR}/${destdir}/${etcfile} || die
138  }  }
139    
140    minstalludev()
141    {
142     local udevrule
143     local file
144    
145     [[ -z "$1" ]] && die "No udev rule given"
146    
147     # if no fullpath given use file from sourcedir
148     if [[ -z $(dirname $1) ]] || [[ $(dirname $1) = . ]]
149     then
150     file="${SOURCEDIR}/${PNAME}/$1"
151     else
152     file="$1"
153     fi
154    
155     if [[ -n "$2" ]]
156     then
157     udevrule="$2"
158     else
159     udevrule="$(basename ${file})"
160     fi
161    
162     # needed directory
163     install -d ${BINDIR}/etc/udev/rules.d || die
164    
165     # install our initscript
166     install -v -m 0755 -o root -g root ${file} ${BINDIR}/etc/udev/rules.d/udevrule || die
167    }
168    
169  # install man files to appropiate dirs  # install man files to appropiate dirs
170  # minstallman /path/to/manfile.foo  # minstallman /path/to/manfile.foo
171  minstallman()  minstallman()

Legend:
Removed from v.1113  
changed lines
  Added in v.2031