Magellan Linux

Diff of /trunk/mage/usr/lib/mage/smage2.sh

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

revision 875 by niro, Thu May 21 19:06:26 2009 UTC revision 885 by niro, Tue Jun 30 20:19:28 2009 UTC
# Line 173  download_sources() Line 173  download_sources()
173   my_SOURCEDIR="${SOURCEDIR}/${PNAME}"   my_SOURCEDIR="${SOURCEDIR}/${PNAME}"
174   fi   fi
175    
176     # create the SOURCEDIR
177     install -d ${my_SOURCEDIR}
178    
179   # if an mirrored file than replace first the mirror uri   # if an mirrored file than replace first the mirror uri
180   if [[ -n $(echo ${my_SRC_URI} | grep 'mirror://') ]]   if [[ -n $(echo ${my_SRC_URI} | grep 'mirror://') ]]
181   then   then
# Line 188  download_sources() Line 191  download_sources()
191   --tries 3 \   --tries 3 \
192   --continue \   --continue \
193   --progress bar \   --progress bar \
194   --directory-prefix="${my_SOURCEDIR}" \   --output-document="${my_SOURCEDIR}/$(basename ${my_SRC_URI_MIRROR})" \
195   "${my_SRC_URI_MIRROR}"   "${my_SRC_URI_MIRROR}"
196   if [[ $? = 0 ]]   if [[ $? = 0 ]]
197   then   then
# Line 212  download_sources() Line 215  download_sources()
215   --tries 3 \   --tries 3 \
216   --continue \   --continue \
217   --progress bar \   --progress bar \
218   --directory-prefix="${my_SOURCEDIR}" \   --output-document="${my_SOURCEDIR}/$(basename ${my_SRC_URI_MIRROR})" \
219   "${my_SRC_URI_MIRROR}"   "${my_SRC_URI_MIRROR}"
220   if [[ $? = 0 ]]   if [[ $? = 0 ]]
221   then   then
# Line 236  download_sources() Line 239  download_sources()
239   --tries 3 \   --tries 3 \
240   --continue \   --continue \
241   --progress bar \   --progress bar \
242   --directory-prefix="${my_SOURCEDIR}" \   --output-document="${my_SOURCEDIR}/$(basename ${my_SRC_URI_MIRROR})" \
243   "${my_SRC_URI_MIRROR}"   "${my_SRC_URI_MIRROR}"
244   if [[ $? = 0 ]]   if [[ $? = 0 ]]
245   then   then
# Line 260  download_sources() Line 263  download_sources()
263   --tries 3 \   --tries 3 \
264   --continue \   --continue \
265   --progress bar \   --progress bar \
266   --directory-prefix="${my_SOURCEDIR}" \   --output-document="${my_SOURCEDIR}/$(basename ${my_SRC_URI_MIRROR})" \
267   "${my_SRC_URI_MIRROR}"   "${my_SRC_URI_MIRROR}"
268   if [[ $? = 0 ]]   if [[ $? = 0 ]]
269   then   then
# Line 284  download_sources() Line 287  download_sources()
287   --tries 3 \   --tries 3 \
288   --continue \   --continue \
289   --progress bar \   --progress bar \
290   --directory-prefix="${my_SOURCEDIR}" \   --output-document="${my_SOURCEDIR}/$(basename ${my_SRC_URI_MIRROR})" \
291   "${my_SRC_URI_MIRROR}"   "${my_SRC_URI_MIRROR}"
292   if [[ $? = 0 ]]   if [[ $? = 0 ]]
293   then   then
# Line 303  download_sources() Line 306  download_sources()
306   --tries 3 \   --tries 3 \
307   --continue \   --continue \
308   --progress bar \   --progress bar \
309   --directory-prefix="${my_SOURCEDIR}" \   --output-document="${my_SOURCEDIR}/$(basename ${my_SRC_URI})" \
310   "${my_SRC_URI}"   "${my_SRC_URI}"
311   fi   fi
312   fi   fi
# Line 1219  fi Line 1222  fi
1222  [[ ! -d /var/log/smage ]] && install -d /var/log/smage  [[ ! -d /var/log/smage ]] && install -d /var/log/smage
1223  echo -e "### Build started on $(date) ###\n" > /var/log/smage/${PKGNAME}.log  echo -e "### Build started on $(date) ###\n" > /var/log/smage/${PKGNAME}.log
1224    
1225  ( src_prepare || die "src_prepare failed" ) | ${SMAGE_LOG_CMD}  src_prepare || die "src_prepare failed" | ${SMAGE_LOG_CMD}
1226  step_by_step $_  step_by_step $_
1227  ( src_compile || die "src_compile failed" ) | ${SMAGE_LOG_CMD}  src_compile || die "src_compile failed" | ${SMAGE_LOG_CMD}
1228  step_by_step $_  step_by_step $_
1229  ( src_install || die "src_install failed" ) | ${SMAGE_LOG_CMD}  src_install || die "src_install failed" | ${SMAGE_LOG_CMD}
1230  step_by_step $_  step_by_step $_
1231    
1232    

Legend:
Removed from v.875  
changed lines
  Added in v.885