|
|
@ -1,9 +1,9 @@ |
|
|
|
#!/bin/bash |
|
|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
|
|
|
scriptPath="$( cd "$(dirname "${0}")" ; pwd -P )" |
|
|
|
scriptPath="$( cd "$(dirname "${0}")" ; pwd -P )" |
|
|
|
buildPath="${scriptPath}/Build" |
|
|
|
|
|
|
|
binariesPath="${scriptPath}/Binaries" |
|
|
|
|
|
|
|
synergyCorePath="${scriptPath}/Synergy-Core" |
|
|
|
synergyCorePath="${scriptPath}/Synergy-Core" |
|
|
|
|
|
|
|
buildPath="${synergyCorePath}/build" |
|
|
|
|
|
|
|
binariesPath="${scriptPath}/Binaries" |
|
|
|
|
|
|
|
|
|
|
|
source /etc/os-release || exit 1 |
|
|
|
source /etc/os-release || exit 1 |
|
|
|
cat "${synergyCorePath}/Build.properties" | perl -pe "s/(SYNERGY\w+) *= */export \1=/" > "${buildPath}/version" |
|
|
|
cat "${synergyCorePath}/Build.properties" | perl -pe "s/(SYNERGY\w+) *= */export \1=/" > "${buildPath}/version" |
|
|
@ -52,25 +52,34 @@ buildAppImage() { |
|
|
|
|
|
|
|
|
|
|
|
buildDeb() { |
|
|
|
buildDeb() { |
|
|
|
|
|
|
|
|
|
|
|
pushd "${buildPath}" || exit 1 |
|
|
|
pushd "${synergyCorePath}" || exit 1 |
|
|
|
|
|
|
|
|
|
|
|
pushd "${synergyCorePath}" || exit 1 |
|
|
|
printf "synergy (${synergyVersion}) ${SYNERGY_VERSION_STAGE}; urgency=medium\n" > "debian/changelog" |
|
|
|
|
|
|
|
debuild --set-envvar CMAKE_BUILD_TYPE=MINSIZEREL --set-envvar SYNERGY_ENTERPRISE=ON -us -uc |
|
|
|
|
|
|
|
git clean -fd |
|
|
|
|
|
|
|
|
|
|
|
printf "synergy (${synergyVersion}) ${synergyStage}; urgency=medium\n" > "debian/changelog" |
|
|
|
popd |
|
|
|
debuild --set-envvar CMAKE_BUILD_TYPE=MINSIZEREL --set-envvar SYNERGY_ENTERPRISE=ON -us -uc |
|
|
|
|
|
|
|
git clean -fd |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
popd |
|
|
|
pushd "${buildPath}" || exit 1 |
|
|
|
|
|
|
|
|
|
|
|
mv "${synergyCorePath}/../"*.deb "${binariesPath}" |
|
|
|
mv "${synergyCorePath}/../"*.deb "${binariesPath}" |
|
|
|
rm "${synergyCorePath}/../synergy_${synergyVersion}"* |
|
|
|
|
|
|
|
rm "${synergyCorePath}/../synergy-dbgsym_${synergyVersion}"* |
|
|
|
rename "s/(\\d+\\.\\d+.\\d+)/\$1-${linuxVersion}/g" "${binariesPath}"/*.deb |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mv "${synergyCorePath}/../synergy_${synergyVersion}"* "${buildPath}" |
|
|
|
|
|
|
|
mv "${synergyCorePath}/../synergy-dbgsym_${synergyVersion}"* "${buildPath}" |
|
|
|
|
|
|
|
|
|
|
|
popd |
|
|
|
popd |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
buildClean() { |
|
|
|
buildClean() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pushd "${synergyCorePath}" || exit 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
git clean -fd |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
popd |
|
|
|
|
|
|
|
|
|
|
|
rm -fR "${buildPath}/"* |
|
|
|
rm -fR "${buildPath}/"* |
|
|
|
rm -fR "${binariesPath}/"* |
|
|
|
rm -fR "${binariesPath}/"* |
|
|
|
|
|
|
|
|
|
|
@ -79,7 +88,6 @@ buildClean() { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "${1}" = "--help" ] || [ "${1}" = "-h" ]; then |
|
|
|
if [ "${1}" = "--help" ] || [ "${1}" = "-h" ]; then |
|
|
|
|
|
|
|
|
|
|
|
echo \ |
|
|
|
echo \ |
|
|
|