home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / Programming / Python2 / Python20_source / Misc / RPM / make-spec.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  2000-10-25  |  418 b   |  12 lines

  1. #! /bin/bash
  2.  
  3. RPM_TOPDIR=/usr/src/redhat
  4.  
  5. PY_VERSION=`perl -ne 'print "$1\n" if (/PY_VERSION\s*\"(.*)\"/o);' ../../Include/patchlevel.h`
  6. export PY_VERSION
  7.  
  8. cp beopen-python.spec $RPM_TOPDIR/SPECS/beopen-python-$PY_VERSION.spec
  9. cp BeOpen-Python-Setup.patch $RPM_TOPDIR/SOURCES/BeOpen-Python-$PY_VERSION-Setup.patch
  10.  
  11. perl -pi -e "s/(%define version).*/\$1 $PY_VERSION/;" $RPM_TOPDIR/SPECS/beopen-python-$PY_VERSION.spec
  12.