Magellan Linux

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

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

revision 447 by niro, Tue Mar 20 01:15:31 2007 UTC revision 497 by niro, Thu Jun 7 13:16:03 2007 UTC
# Line 4  Line 4 
4  # needs pkgbuild_dir (mage)  # needs pkgbuild_dir (mage)
5    
6  # SMAGE2  # SMAGE2
7  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/smage2.sh,v 1.55 2007-03-20 01:15:31 niro Exp $  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/smage2.sh,v 1.58 2007-06-07 13:16:03 niro Exp $
8    
9  #01.10.2004  #01.10.2004
10  # added ccache support  # added ccache support
# Line 244  download_sources() Line 244  download_sources()
244   fi   fi
245   fi   fi
246   done   done
247     elif [[ -n $(echo ${my_SRC_URI} | grep 'kde://') ]]
248     then
249     for mirror in ${KDE_MIRRORS}
250     do
251     my_SRC_URI_MIRROR="$(echo ${my_SRC_URI} | sed "s|kde:/|${mirror}|g")"
252    
253     if [[ ${FETCHING} = true ]]
254     then
255     echo -e "${COLBLUE}==>${COLGREEN} fetching ${my_SRC_URI_MIRROR}${COLDEFAULT}"
256     wget \
257     --passive-ftp \
258     --tries 3 \
259     --continue \
260     --progress bar \
261     --directory-prefix="${my_SOURCEDIR}" \
262     "${my_SRC_URI_MIRROR}"
263     if [[ $? = 0 ]]
264     then
265     break
266     else
267     continue
268     fi
269     fi
270     done
271     elif [[ -n $(echo ${my_SRC_URI} | grep 'gnome://') ]]
272     then
273     for mirror in ${GNOME_MIRRORS}
274     do
275     my_SRC_URI_MIRROR="$(echo ${my_SRC_URI} | sed "s|gnome:/|${mirror}|g")"
276    
277     if [[ ${FETCHING} = true ]]
278     then
279     echo -e "${COLBLUE}==>${COLGREEN} fetching ${my_SRC_URI_MIRROR}${COLDEFAULT}"
280     wget \
281     --passive-ftp \
282     --tries 3 \
283     --continue \
284     --progress bar \
285     --directory-prefix="${my_SOURCEDIR}" \
286     "${my_SRC_URI_MIRROR}"
287     if [[ $? = 0 ]]
288     then
289     break
290     else
291     continue
292     fi
293     fi
294     done
295   else   else
296   if [[ ${FETCHING} = true ]]   if [[ ${FETCHING} = true ]]
297   then   then
# Line 424  mpatch() Line 472  mpatch()
472   patch "${PATCHOPTS}" -i ${SOURCEDIR}/${PNAME}/${PATCHFILE}   patch "${PATCHOPTS}" -i ${SOURCEDIR}/${PNAME}/${PATCHFILE}
473  }  }
474    
475    mlibtoolize()
476    {
477     local opts="$@"
478     [[ -z ${opts} ]] && opts="--copy --force"
479    
480     libtoolize ${opts} || die "running: mlibtoolize ${opts}"
481    }
482    
483  minstalldocs()  minstalldocs()
484  {  {
# Line 608  build_mage_script() Line 663  build_mage_script()
663   > ${dest}   > ${dest}
664    
665   # header   # header
666   echo '# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/smage2.sh,v 1.55 2007-03-20 01:15:31 niro Exp $' >> ${dest}   echo '# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/smage2.sh,v 1.58 2007-06-07 13:16:03 niro Exp $' >> ${dest}
667   echo  >> ${dest}   echo  >> ${dest}
668    
669   # pgkname and state   # pgkname and state
# Line 716  regen_mage_tree() Line 771  regen_mage_tree()
771   # now unset all uneeded vars to be safe   # now unset all uneeded vars to be safe
772   # unset PKGNAME <-- don't do that; smage needs this var   # unset PKGNAME <-- don't do that; smage needs this var
773   # unset to be safe (quotes needed !)   # unset to be safe (quotes needed !)
774   for i in ${SPECIAL_FUNCTIONS}  # for i in ${SPECIAL_FUNCTIONS}
775   do  # do
776   unset "${i}"  # unset "${i}"
777   done  # done
778   unset SPECIAL_FUNCTIONS   unset SPECIAL_FUNCTIONS
779   for i in ${SPECIAL_VARS}  # for i in ${SPECIAL_VARS}
780   do  # do
781   unset "${i}"  # unset "${i}"
782   done  # done
783   unset SPECIAL_VARS   unset SPECIAL_VARS
784   unset STATE   unset STATE
785   unset DESCRIPTION   unset DESCRIPTION

Legend:
Removed from v.447  
changed lines
  Added in v.497