Skip to content

Commit

Permalink
RH6 Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mclarkson committed Nov 17, 2013
1 parent 8e2cd11 commit 3426412
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions hudson_rpm_build.sh
Expand Up @@ -21,14 +21,6 @@ for DIR in SOURCES SPECS; do
fi
done

echo ----
ls -lh
echo ----
cat POINTRELEASE
echo ----

. POINTRELEASE

rm -rf TMP
mkdir -p TMP BUILD RPMS SRPMS|| exit 1
rm -rf TMP/* BUILD/* RPMS/* SRPMS/*|| exit 1
Expand Down Expand Up @@ -104,17 +96,23 @@ for PKG in `( cd SPECS; ls *.spec )`; do
}

#SVN_REV=`svn info SOURCES | sed -n '/Revision:/ { s/Revision: //p }'`
#

#echo "Subversion Revision: $SVN_REV"
#

#POINTRELEASE=$SVN_REV

# Use the debian version number from the changelog
POINTRELEASE=`head -1 ./SOURCES/nagrestconf-1/debian/changelog | sed 's/^.*(1\.//;s/).*//'`

echo "Package Release: $RELEASE"
echo "New Version No.: $VERSION.${POINTRELEASE}"

sed "s/^Release: .*/Release: ${POINTRELEASE}/g" \
sed "s/^%define *version.*/%define version ${VERSION}.${POINTRELEASE}/g" \
${BASE}/SPECS/${PKG} > ${BASE}/TMP/${PKG}

echo "Cleaning SOURCES directory..."
rm -rf SOURCES/$NAME-$VERSION.*

echo "Preparing sources for '${NAME}-${VERSION}'..."

if [[ -d SOURCES/${NAME}-${VERSION} ]]; then
Expand Down Expand Up @@ -179,10 +177,6 @@ for PKG in `( cd SPECS; ls *.spec )`; do
fi

#rm -rf BUILD/${NAME}-${VERSION} SOURCES/${NAME}-${VERSION}.tar.gz

echo "Cleaning SOURCES directory..."
find SOURCES/$NAME-$VERSION* ! -name "*.tar.gz" -exec rm -rf {} \;

done

if [ ${GRV} -ne 0 ]; then
Expand Down

0 comments on commit 3426412

Please sign in to comment.