Magellan Linux

Diff of /trunk/mage/usr/lib/mage/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 156 by niro, Sat Jul 23 16:34:29 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.14 2005-07-23 16:34:29 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-r18
15  PKGSUFFIX="mpk"  PKGSUFFIX="mpk"
16  SMAGENAME="$1"  SMAGENAME="$1"
17  SMAGESUFFIX="smage2"  SMAGESUFFIX="smage2"
# Line 179  download_sources() { Line 179  download_sources() {
179   --progress bar \   --progress bar \
180   --directory-prefix="${my_SOURCEDIR}" \   --directory-prefix="${my_SOURCEDIR}" \
181   "${my_SRC_URI}"   "${my_SRC_URI}"
182   if [ "$?" == "0" ]  # only needed to run through a list of mirrors
183   then  # if [ "$?" == "0" ]
184   break  # then
185   else  # break
186   continue  # else
187   fi  # continue
188    # fi
189   fi   fi
190   fi   fi
191    
# Line 339  minstalldocs() { Line 340  minstalldocs() {
340   done   done
341  }  }
342    
343    mstriplibs() {
344     local stripdir="$@"
345    
346     [ -z "${stripdir}" ] && stripdir=${BINDIR}
347     find ${stripdir} | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
348    }
349    
350    mstripbins() {
351     local stripdir="$@"
352    
353     [ -z "${stripdir}" ] && stripdir=${BINDIR}
354     find ${stripdir} | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
355    }
356    
357  setup_distcc_environment(){  setup_distcc_environment(){
358   if [ -x /usr/bin/distcc ]   if [ -x /usr/bin/distcc ]
359   then   then
# Line 637  then Line 652  then
652   ${MLIBDIR}/compressdoc -g -9 ${BUILDDIR}/builded/usr/share/info   ${MLIBDIR}/compressdoc -g -9 ${BUILDDIR}/builded/usr/share/info
653  fi  fi
654    
655    # stripping all bins and libs
656    case ${NOSTRIP} in
657     true|TRUE|yes|y)
658     echo -e "NOSTRIP=true detected; Package will not be stripped ..."
659     ;;
660     *)
661     echo -e "Stripping binaries ..."
662     mstripbins ${BINDIR}
663     echo -e "Stripping libraries ..."
664     mstriplibs ${BINDIR}
665     ;;
666    esac
667    
668  #the new buildpkg command  #the new buildpkg command
669  case ${NOPKGBUILD} in  case ${NOPKGBUILD} in
670   true|TRUE|yes|y)   true|TRUE|yes|y)
# Line 650  esac Line 678  esac
678    
679  #for sure  #for sure
680  unset NOPKGBUILD  unset NOPKGBUILD
681    unset NOSTRIP
682    
683  xtitleclean  xtitleclean
684  #echo -e "\nPackage ${PKGNAME} successfully builded.\n"  #echo -e "\nPackage ${PKGNAME} successfully builded.\n"

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