Magellan Linux

Diff of /branches/mage-next/src/smage2.sh

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

revision 66 by niro, Wed Feb 16 17:50:54 2005 UTC revision 169 by niro, Sun Jul 31 11:57:05 2005 UTC
# Line 4  Line 4 
4  # needs pkgbuild_dir (mage)  # needs pkgbuild_dir (mage)
5    
6  # SMAGE2  # SMAGE2
7  # version: 0.3.6-r15  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/smage2.sh,v 1.16 2005-07-31 11:57:05 niro Exp $
8    
9  #01.10.2004  #01.10.2004
10  # added ccache support  # added ccache support
11  # added distcc support  # added distcc support
12    
13  ## setup ##  ## setup ##
14  SMAGEVERSION=0.3.6-r15  SMAGEVERSION=0.3.6-r19
15  PKGSUFFIX="mpk"  PKGSUFFIX="mpk"
16  SMAGENAME="$1"  SMAGENAME="$1"
17  SMAGESUFFIX="smage2"  SMAGESUFFIX="smage2"
# Line 20  SMAGESUFFIX="smage2" Line 20  SMAGESUFFIX="smage2"
20  #SMAGE2RSYNC="rsync://192.168.0.2/smage2-scripts"  #SMAGE2RSYNC="rsync://192.168.0.2/smage2-scripts"
21  MLIBDIR=/usr/lib/mage  MLIBDIR=/usr/lib/mage
22    
23    # export default C locale
24    export LC_ALL=C
25    
26  source /etc/mage.rc  source /etc/mage.rc
27    
28  showversion() {  showversion() {
# Line 179  download_sources() { Line 182  download_sources() {
182   --progress bar \   --progress bar \
183   --directory-prefix="${my_SOURCEDIR}" \   --directory-prefix="${my_SOURCEDIR}" \
184   "${my_SRC_URI}"   "${my_SRC_URI}"
185   if [ "$?" == "0" ]  # only needed to run through a list of mirrors
186   then  # if [ "$?" == "0" ]
187   break  # then
188   else  # break
189   continue  # else
190   fi  # continue
191    # fi
192   fi   fi
193   fi   fi
194    
# Line 339  minstalldocs() { Line 343  minstalldocs() {
343   done   done
344  }  }
345    
346    mstriplibs() {
347     local stripdir="$@"
348    
349     [ -z "${stripdir}" ] && stripdir=${BINDIR}
350     find ${stripdir} | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
351    }
352    
353    mstripbins() {
354     local stripdir="$@"
355    
356     [ -z "${stripdir}" ] && stripdir=${BINDIR}
357     find ${stripdir} | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
358    }
359    
360  setup_distcc_environment(){  setup_distcc_environment(){
361   if [ -x /usr/bin/distcc ]   if [ -x /usr/bin/distcc ]
362   then   then
# Line 637  then Line 655  then
655   ${MLIBDIR}/compressdoc -g -9 ${BUILDDIR}/builded/usr/share/info   ${MLIBDIR}/compressdoc -g -9 ${BUILDDIR}/builded/usr/share/info
656  fi  fi
657    
658    # stripping all bins and libs
659    case ${NOSTRIP} in
660     true|TRUE|yes|y)
661     echo -e "NOSTRIP=true detected; Package will not be stripped ..."
662     ;;
663     *)
664     echo -e "Stripping binaries ..."
665     mstripbins ${BINDIR}
666     echo -e "Stripping libraries ..."
667     mstriplibs ${BINDIR}
668     ;;
669    esac
670    
671  #the new buildpkg command  #the new buildpkg command
672  case ${NOPKGBUILD} in  case ${NOPKGBUILD} in
673   true|TRUE|yes|y)   true|TRUE|yes|y)
# Line 650  esac Line 681  esac
681    
682  #for sure  #for sure
683  unset NOPKGBUILD  unset NOPKGBUILD
684    unset NOSTRIP
685    
686  xtitleclean  xtitleclean
687  #echo -e "\nPackage ${PKGNAME} successfully builded.\n"  #echo -e "\nPackage ${PKGNAME} successfully builded.\n"

Legend:
Removed from v.66  
changed lines
  Added in v.169