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

productName=lucene
downloadFileAndMakeChanges() {
        initializeVariables $1
        tempDirectory=$BASE/$fileName/opt
        confDirectory=$BASE/$fileName/etc/$productName
        tarFile=lucene-4.4.0.tgz
        # Create directories that are required for the debian package
        mkdir -p $confDirectory
	wget http://archive.apache.org/dist/lucene/java/4.4.0/$tarFile -P $tempDirectory
        if [ -f $BASE/$fileName/opt/README* ]; then
                rm $BASE/$fileName/opt/README*
        fi
        # unpack tar ball and make changes 
        pushd $tempDirectory
        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 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=lucene
downloadFileAndMakeChanges() {
        initializeVariables $1
        tempDirectory=$BASE/$fileName/opt
        confDirectory=$BASE/$fileName/etc/$productName
        tarFile=lucene-4.4.0.tgz
        # Create directories that are required for the debian package
        mkdir -p $confDirectory
	wget http://archive.apache.org/dist/lucene/java/4.4.0/$tarFile -P $tempDirectory
        if [ -f $BASE/$fileName/opt/README ]; then
                rm $BASE/$fileName/opt/README
        fi
        # unpack tar ball and make changes 
        pushd $tempDirectory
        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 file and make necessary changes
downloadFileAndMakeChanges $productName
# 4) Create the debian package
generateDebianPackage $productName

--- 
+++ 
@@ -11,8 +11,8 @@
         # Create directories that are required for the debian package
         mkdir -p $confDirectory
 	wget http://archive.apache.org/dist/lucene/java/4.4.0/$tarFile -P $tempDirectory
-        if [ -f $BASE/$fileName/opt/README* ]; then
-                rm $BASE/$fileName/opt/README*
+        if [ -f $BASE/$fileName/opt/README ]; then
+                rm $BASE/$fileName/opt/README
         fi
         # unpack tar ball and make changes 
         pushd $tempDirectory
Remove readme file from lucene debian packaghe


Former-commit-id: 120b912e2ac57a1442a942046092774f41f7bcb9