mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 20:12:14 +00:00
https://svn.dev.java.net/svn/hudson/branches/rc ........ r30161 | kohsuke | 2010-04-16 20:12:58 -0700 (Fri, 16 Apr 2010) | 1 line forgot to commit this file ........ r30162 | kohsuke | 2010-04-16 20:13:56 -0700 (Fri, 16 Apr 2010) | 1 line reworking the release process ........ r30163 | kohsuke | 2010-04-16 20:47:30 -0700 (Fri, 16 Apr 2010) | 1 line [maven-release-plugin] prepare release hudson-1_355 ........ r30165 | kohsuke | 2010-04-16 20:47:51 -0700 (Fri, 16 Apr 2010) | 1 line [maven-release-plugin] prepare for next development iteration ........ r30169 | kohsuke | 2010-04-16 22:56:23 -0700 (Fri, 16 Apr 2010) | 1 line updated changelog as a part of the release ........ git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30232 71c3de6d-444a-0410-be80-ed276b4c234a
19 lines
558 B
Bash
Executable File
19 lines
558 B
Bash
Executable File
#!/bin/bash -e
|
|
if [ -z "$1" ]; then
|
|
echo "Usage: build.sh path/to/hudson.war"
|
|
exit 1
|
|
fi
|
|
|
|
# figure out the version to package
|
|
cp "$1" $(dirname $0)/SOURCES/hudson.war
|
|
pushd $(dirname $0)
|
|
version=$(unzip -p SOURCES/hudson.war META-INF/MANIFEST.MF | grep Implementation-Version | cut -d ' ' -f2 | tr - .)
|
|
echo Version is $version
|
|
|
|
# prepare fresh directories
|
|
rm -rf BUILD RPMS SRPMS tmp || true
|
|
mkdir -p BUILD RPMS SRPMS
|
|
|
|
# real action happens here
|
|
rpmbuild -ba --define="_topdir $PWD" --define="_tmppath $PWD/tmp" --define="ver $version" SPECS/hudson.spec
|