Magellan Linux

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

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

revision 2748 by niro, Wed Aug 13 14:04:10 2014 UTC revision 2775 by niro, Thu Aug 28 09:10:04 2014 UTC
# Line 62  runarch() Line 62  runarch()
62   rm "${runrc}"   rm "${runrc}"
63   fi   fi
64  }  }
65    
66    runarch-pkg-install()
67    {
68     local arch="$1"
69     local pkg="$2"
70    
71     if [ ! -f ${BUILDROOT}/.stamps/"${arch}"_"${pkg}"-ok ]
72     then
73     runarch "${arch}" mage install "${pkg}" || die "${arch} install 'python'"
74     touch ${BUILDROOT}/.stamps/"${arch}"_"${pkg}"-ok
75     else
76     echo "Warning: '${pkg}' already installed for arch '${arch}'"
77     fi
78    
79     # never fail
80     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.2748  
changed lines
  Added in v.2775