# Path: exe/engine/version.py



import sys
import os
import glob
import subprocess
from exe.engine import version
#!/usr/bin/env python

# another thinly disguised shell script written in Python


# TOPDIR root of RPM build tree typically /usr/src/redhat or /home/xxx/.rpm
#TOPDIR = '/usr/src/redhat'
TOPDIR = os.path.join(os.environ['HOME'], '.rpm')

# where the SVN exe source directory is
#SRCDIR = '/usr/local/src'
SRCDIR = os.path.abspath('../../..')

# get the version/revision
sys.path.insert(0, os.path.join(SRCDIR, 'exe'))

# find the first release that doesn't exist
clrelease = 1
while 1:
    files = glob.glob(os.path.join(TOPDIR, 'RPMS/i386',
        'exe-%s-%d.*.i386.rpm' % (version.version, clrelease)))
    if len(files) == 0:
        break
    clrelease += 1

print "Making version: %s release: %s" % (version.version, clrelease)

# create the source tarball
os.chdir(SRCDIR)

# Path: exe/engine/version.py



# Path: installs/rpm/make.py
import sys
import os
import glob
import subprocess
from exe.engine import version

#!/usr/bin/env python

# another thinly disguised shell script written in Python


# TOPDIR root of RPM build tree typically /usr/src/redhat or /home/xxx/.rpm
#TOPDIR = '/usr/src/redhat'
TOPDIR = os.path.join(os.environ['HOME'], '.rpm')

# where the SVN exe source directory is
#SRCDIR = '/usr/local/src'
SRCDIR = os.path.abspath('../../..')

# get the version/revision
sys.path.insert(0, os.path.join(SRCDIR, 'exe'))

# find the first release that doesn't exist
clrelease = 1
while 1:
    files = glob.glob(os.path.join(TOPDIR, 'RPMS/i386',
        'exe-%s-%d.*.i386.rpm' % (version.version, clrelease)))
    if len(files) == 0:
        break
    clrelease += 1

print "Making version: %s release: %s" % (version.version, clrelease)

# create the source tarball
os.chdir(SRCDIR)

tarball = os.path.join(TOPDIR, 'SOURCES', 'exe-' + version.version + '-source.tgz')