Magellan Linux

Diff of /trunk/mage-buildserver/buildserver-functions.sh

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

revision 2774 by niro, Thu Aug 28 09:08:32 2014 UTC revision 2775 by niro, Thu Aug 28 09:10:04 2014 UTC
# Line 79  runarch-pkg-install() Line 79  runarch-pkg-install()
79   # never fail   # never fail
80   return 0   return 0
81  }  }
82    
83    enum-build-arch-types()
84    {
85     echo "${BUILD_ARCH[*]}"
86    }
87    
88    enum-all-arch-types()
89    {
90     local arch
91     local build_arch_types
92    
93     for arch in src ${BUILD_ARCH[*]}
94     do
95     if [ ! -e ${BUILDSERVER_CONFIG_DIR}/profiles/${BUILDROOT_PROFILE}/${arch}/mage.rc ]
96     then
97     echo "Warning: mage.rc of '${arch}' not found. Arch '${arch}' ignored." >&2
98     else
99     build_arch_types+=( "${arch}" )
100     fi
101     done
102    
103     if [[ ${BUILD_PLAYGROUND} -eq 1 ]]
104     then
105     for arch in ${BUILD_ARCH[*]}
106     do
107     if [ ! -e ${BUILDSERVER_CONFIG_DIR}/profiles/${BUILDROOT_PROFILE}/playground-${arch}/mage.rc ]
108     then
109     echo "Warning: mage.rc of 'playground-${arch}' not found. Arch 'playground-${arch}' ignored." >&2
110     else
111     build_arch_types+=( "playground-${arch}" )
112     fi
113     done
114     fi
115    
116     echo "${build_arch_types[*]}"
117    }

Legend:
Removed from v.2774  
changed lines
  Added in v.2775