Magellan Linux

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

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

revision 2729 by niro, Sun Aug 10 19:33:52 2014 UTC revision 2730 by niro, Sun Aug 10 19:35:40 2014 UTC
# Line 113  do Line 113  do
113   # update-ca-certificates   # update-ca-certificates
114   runarch "${arch}" update-ca-certificates # no die here, cmd may missing   runarch "${arch}" update-ca-certificates # no die here, cmd may missing
115    
116     # create list of protected packages
117     echo "BUILDSERVER_CONFIG_DIR=\"${BUILDSERVER_CONFIG_DIR}\"" > ${BUILDROOT}/${arch}/.runrc
118     install -d ${BUILDSERVER_CONFIG_DIR}/protected
119     cat >> ${BUILDROOT}/${arch}/.runrc << "EOF"
120    env-rebuild
121    source /etc/profile
122    
123    if [ -f /etc/rc.d/init.d/functions ]
124    then
125     source /etc/rc.d/init.d/functions
126    else
127     die "/etc/rc.d/init.d/functions not found"
128    fi
129    if [ -f /etc/mage.rc.global ]
130    then
131     source /etc/mage.rc.global
132    else
133     die "/etc/mage.rc.global not found"
134    fi
135    if [ -f /etc/mage.rc ]
136    then
137     source /etc/mage.rc
138    else
139     die "/etc/mage.rc not found"
140    fi
141    
142    for mage in $(find ${INSTALLDB} -name \*.${MAGESUFFIX})
143    do
144     pkgname=$(basename ${i} .${MAGESUFFIX})
145     pkgname="${pkgname%-*-*}"
146     echo "${pkgname}" > ${BUILDSERVER_CONFIG_DIR}/protected/"${pkgname}"
147    done
148    EOF
149    
150   # cleanup   # cleanup
151   runarch "${arch}" mage clean || die "${arch} mage clean"   runarch "${arch}" mage clean || die "${arch} mage clean"
152    

Legend:
Removed from v.2729  
changed lines
  Added in v.2730