source: dassmodus/trunk/dassmodus/packaging/create_rpm_sources.sh@ 964

Last change on this file since 964 was 964, checked in by pstorz, on Oct 18, 2011 at 5:21:11 PM

update

  • Property svn:executable set to *
File size: 760 bytes
RevLine 
[963]1#!/bin/bash
2# create rpm souce tarbz2s from source tree
3
[964]4if [ $# -ne 1 ]
[963]5then
6 echo "Error in $0 - Invalid Argument Count"
7 echo "usage: $0 modulename version"
8 exit
9fi
10
[964]11for PACK in dassmodus nosferatu; do
[963]12
[964]13MODULENAME=$PACK
14VERSION=$1
[963]15
16mkdir python-${MODULENAME}-${VERSION}
17cp -av ../${MODULENAME}/* python-${MODULENAME}-${VERSION}
18
19# dassmodus package also contains templates
20if [ $1 = dassmodus ]
21then
22cp -av ../templates python-${MODULENAME}-${VERSION}
23fi
24
25# copy setup.py file into directory
26cp ${MODULENAME}/setup.py python-${MODULENAME}-${VERSION}
27# remove svn secific files
28find -type d | grep .svn | xargs rm -R
29tar cjvf python-${MODULENAME}-${VERSION}.tar.bz2 python-${MODULENAME}-${VERSION}
30rm -Rvf python-${MODULENAME}-${VERSION}
31
[964]32done
Note: See TracBrowser for help on using the repository browser.