#!/bin/bash
set -e
. /var/lib/jenkins/jobs/master.get_branch_repo/workspace/big-data/pack-funcs

productName=hadoop
downloadFileAndMakeChanges() {
        initializeVariables $1
        optDirectory=$BASE/$fileName/opt
	tarFile=solr-4.4.0.tgz
	mkdir -p $optDirectory

	wget http://archive.apache.org/dist/lucene/solr/4.4.0/$tarFile -P $optDirectpry
        if  ls $optDirectory/README* ; then
                rm $optDirectory/README*
        fi
	# unpack tar ball and make changes 
        pushd $optDirectory
        tar -xpf $tarFile -C .
        rm $tarFile
        popd
}

# 2) Get the sources which are downloaded from version control system to local machine to relevant directories to generate the debian package
getSourcesToRelevantDirectories $productName
# 3) Download hadoop tar file and make necessary changes
downloadFileAndMakeChanges $productName
# 4) Create the Debian package
generateDebianPackage $productName

#!/bin/bash
set -e
. /var/lib/jenkins/jobs/master.get_branch_repo/workspace/big-data/pack-funcs

productName=hadoop
downloadFileAndMakeChanges() {
        initializeVariables $1
        optDirectory=$BASE/$fileName/opt
	tarFile=solr-4.4.0.tgz
	mkdir -p $optDirectory

	wget http://archive.apache.org/dist/lucene/solr/4.4.0/$tarFile -P $optDirectory
        if  ls $optDirectory/README* ; then
                rm $optDirectory/README*
        fi
	# unpack tar ball and make changes 
        pushd $optDirectory
        tar -xpf $tarFile -C .
        rm $tarFile
        popd
}

# 2) Get the sources which are downloaded from version control system to local machine to relevant directories to generate the debian package
getSourcesToRelevantDirectories $productName
# 3) Download hadoop tar file and make necessary changes
downloadFileAndMakeChanges $productName
# 4) Create the Debian package
generateDebianPackage $productName

Edit packaging script of Solr
SUBUTAI-1041: Edit packaging script of Solr

Former-commit-id: 7a34ac1b7ea5199530c8f9feae24a9931526c042