message: create_packages.sh: only generate for platform
diff: @@ -32,6 +32,12 @@ library_files="\
  plugins/offboard/offboard.h=/usr/include/dronecore/offboard.h \
  plugins/telemetry/telemetry.h=/usr/include/dronecore/telemetry.h"
  +integrationtests_files="\
  + build/default/dronecore-integrationtests=/usr/bin/dronecore-integrationtests"
  +
  +if cat /etc/os-release | grep -q 'Ubuntu\|Debian'
  +then
  + echo "Building DEB package"
  fpm $common_args \
  --output-type deb \
  --depends libtinyxml2-dev \
  @@ -41,18 +47,6 @@ fpm $common_args \
  --provides libdronecore-dev \
  $library_files
  -fpm $common_args \
  - --output-type rpm \
  - --depends tinyxml2-devel \
  - --depends libcurl-devel \
  - --name libdronecore-devel \
  - --provides libdronecore-devel \
  - $library_files
  -
  -
  -integrationtests_files="\
  - build/default/dronecore-integrationtests=/usr/bin/dronecore-integrationtests"
  -
  fpm $common_args \
  --output-type deb \
  --depends libdronecore-dev \
  @@ -61,9 +55,21 @@ fpm $common_args \
  --provides dronecore-integrationtests \
  $integrationtests_files
  +elif cat /etc/os-release | grep -q 'Fedora\|RedHat'
  +then
  + echo "Building RPM package"
  fpm $common_args \
  --output-type rpm \
  --depends libdronecore-devel \
  --name dronecore-integrationtests \
  --provides dronecore-integrationtests \
  $integrationtests_files
  +
  + fpm $common_args \
  + --output-type rpm \
  + --depends tinyxml2-devel \
  + --depends libcurl-devel \
  + --name libdronecore-devel \
  + --provides libdronecore-devel \
  + $library_files
  +fi
  