"Fossies" - the Fresh Open Source Software Archive

Member "scalpel-2.0/tre-0.7.5-win32/utils/build-rpm.sh" (20 Apr 2011, 627 Bytes) of archive /linux/misc/scalpel-2.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #! /bin/sh
    2 #
    3 # Helper script to build the RPM packages.  Just run this from the root
    4 # of an unconfigured source tree:
    5 #  $ ./utils/build-rpm.sh
    6 #
    7 
    8 
    9 # Create the RPM build environment.
   10 rm -rf rpm/dist
   11 for dir in rpm rpm/RPMS rpm/SRPMS rpm/BUILD rpm/SOURCES rpm/dist; do
   12   if test ! -d $dir; then
   13     mkdir $dir
   14   fi
   15 done
   16 
   17 # Create the source distribution tarball.
   18 cd rpm/dist
   19 ../../configure
   20 make dist
   21 gunzip tre-*.tar.gz
   22 bzip2 tre-*.tar
   23 mv tre-*.tar.bz2 ../SOURCES
   24 cd ..
   25 
   26 # Build the packages.
   27 rm -f RPMS/*/*.rpm SRPMS/*.rpm
   28 rpmbuild --define "_topdir `pwd`" dist/tre.spec -ba
   29 cp RPMS/*/*.rpm SRPMS/*.rpm ..
   30 cd ..
   31 ls -l *.rpm