Skip to content

Commit

Permalink
Merge pull request #41 from IGEL-Community:Zoho-Assist-build-script
Browse files Browse the repository at this point in the history
Zoho Assist Build Script
  • Loading branch information
rneher-igel committed Sep 9, 2024
2 parents b7e2522 + 9b60a54 commit 990b342
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CP_Source/Apps/Zoho_Assist/build/build-zohoassist-cp.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#set -x
#trap read debug
set -x
trap read debug

# Creating an IGELOS CP
## Development machine Ubuntu (OS11.09+ = 22.04; OS12 = 20.04)
Expand Down Expand Up @@ -51,7 +51,7 @@ done
mkdir -p custom/${CP}

# start extract
dpkg -x "${GETVERSION_FILE}" custom/${CP}
dpkg -x ${GETVERSION_FILE} custom/${CP}
# end extract

find . -name "*.deb" | while read LINE
Expand Down Expand Up @@ -102,11 +102,11 @@ cd custom
# edit inf file for version number
mkdir getversion
cd getversion
ar -x "${GETVERSION_FILE}"
tar xf control.tar* ./control ./postinst
ar -x ${GETVERSION_FILE}
tar xf control.tar*
VERSION=$(grep Version control | cut -d " " -f 2)
# copy postinst to CP
mv postinst ../${CP}/usr/local/ZohoAssist/igel_postinst.sh
cp postinst ../${CP}/usr/local/ZohoAssist/igel_postinst.sh
#echo "Version is: " ${VERSION}
cd ..
sed -i "/^version=/c version=\"${VERSION}\"" target/${CP}.inf
Expand Down

0 comments on commit 990b342

Please sign in to comment.