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

Last change on this file since 963 was 963, checked in by pstorz, on Oct 18, 2011 at 5:12:00 PM

packaging script

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