Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Commit

Permalink
Fix unpacking of official distribution
Browse files Browse the repository at this point in the history
Archive and top level directory has been renamed "sonarqube"
in version 4.0.
  • Loading branch information
Godin committed Aug 30, 2015
1 parent 937f8ad commit 81d37a5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ VER=$1

echo "Building DEB package"
rm -v deb/*.zip || true
cp /usr/distfiles/sonar-${VER}.zip deb/
cp /usr/distfiles/sonarqube-${VER}.zip deb/
cd deb/
./build.sh ${VER}
cd ..
Expand Down
2 changes: 1 addition & 1 deletion build-rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ VER=$1

echo "Building RPM package"
rm -v rpm/SOURCES/*.zip || true
cp -v /usr/distfiles/sonar-${VER}.zip rpm/SOURCES/
cp -v /usr/distfiles/sonarqube-${VER}.zip rpm/SOURCES/
rpm/build.sh ${VER}

echo "Building RPM repository"
Expand Down
4 changes: 2 additions & 2 deletions deb/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ echo "sonar (${VER}) unstable; urgency=low
" > debian/changelog

# prepare sonar
unzip sonar-${VER}.zip -d tmp/opt/
mv tmp/opt/sonar-${VER}/ tmp/opt/sonar/
unzip sonarqube-${VER}.zip -d tmp/opt/
mv tmp/opt/sonarqube-${VER}/ tmp/opt/sonar/

# Remove unnecessary files
rm -rv tmp/opt/sonar/bin/windows*
Expand Down
6 changes: 3 additions & 3 deletions rpm/SPECS/sonar.spec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Packager: Evgeny Mandrikov <mandrikov@gmail.com>
Group: Development/Tools
License: LGPLv3
URL: http://sonarsource.org/
Source: sonar-%{ver}.zip
Source: sonarqube-%{ver}.zip
Source1: sonar.init.in
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Expand All @@ -29,7 +29,7 @@ Sonar is an open source software quality management tool, dedicated
to continuously analyze and measure source code quality.

%prep
%setup -q
%setup -q -n sonarqube-%{ver}

%build

Expand All @@ -50,7 +50,7 @@ for i in conf/* ; do
done

mkdir -p %{buildroot}/opt/sonar/
cp -R %{_builddir}/sonar-%{ver}/* %{buildroot}/opt/sonar/
cp -R %{_builddir}/sonarqube-%{ver}/* %{buildroot}/opt/sonar/

%__install -D -m0755 "%{SOURCE1}" "%{buildroot}/etc/init.d/%{name}"

Expand Down

0 comments on commit 81d37a5

Please sign in to comment.