Magellan Linux

Diff of /smage/trunk/include/alx.sminc

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

revision 5462 by niro, Tue Mar 25 10:53:33 2014 UTC revision 6048 by niro, Thu Mar 19 15:33:48 2015 UTC
# Line 7  sminclude cleanutils mtools Line 7  sminclude cleanutils mtools
7  # include alx functions  # include alx functions
8  INHERITS="${INHERITS} alx"  INHERITS="${INHERITS} alx"
9    
10    # add custom alx injection files to SRC_URI (required for proper spkg-tarball support)
11    # requires >=mage-0.4.109
12    if [ -d ${SMAGENAME%/*}/alx/files ]
13    then
14     alxfiles=$(find ${SMAGENAME%/*}/alx/files -mindepth 1 | sed "s:${SMAGENAME%/*}/alx/files/::g")
15     for alxitem in ${alxfiles}
16     do
17     if [[ ! -z ${alxitem} ]]
18     then
19     SRC_URI+=( "file://${SMAGENAME%/*}/alx/files/${alxitem} alx/files" )
20     fi
21     done
22    fi
23    
24  # injects files to given path (defaults to /usr/bin)  # injects files to given path (defaults to /usr/bin)
25  # mcinjectfile file {/path/to/dest}  # mcinjectfile file {/path/to/dest}
26  mcinjectfile()  mcinjectfile()

Legend:
Removed from v.5462  
changed lines
  Added in v.6048