Diff for /freem-mk-debian-package/mk-debian-package between versions 1.4 and 1.6

version 1.4, 2025/03/14 00:58:44 version 1.6, 2025/04/04 02:50:44
Line 26 Line 26
 #   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.  #   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
 #  #
 #   $Log$  #   $Log$
   #   Revision 1.6  2025/04/04 02:50:44  snw
   #   Prepare build scripts for 0.63.0
   #
   #   Revision 1.5  2025/04/03 03:52:38  snw
   #   Prepare Debian packaging infra for 0.63 series
   #
 #   Revision 1.4  2025/03/14 00:58:44  snw  #   Revision 1.4  2025/03/14 00:58:44  snw
 #   Remove dbgsym package from upload  #   Remove dbgsym package from upload
 #  #
Line 56  then Line 62  then
 fi  fi
   
 FREEM_VERSION=$1  FREEM_VERSION=$1
   FREEM_VERSION_MOD=$(echo "${FREEM_VERSION}" | sed 's/-/./g')
 FDPKG_VERSION=$2  FDPKG_VERSION=$2
 FDSSH=$3  FDSSH=$3
   
 SRCDIR=$(pwd)  SRCDIR=$(pwd)
 TMPDIR=$(mktemp -d)  TMPDIR=$(mktemp -d)
 INFILE="freem-${FREEM_VERSION}.tar.gz"  INFILE="freem-${FREEM_VERSION}.tar.gz"
 OUTFILE="${TMPDIR}/freem_${FREEM_VERSION}.orig.tar.gz"  OUTFILE="${TMPDIR}/freem_${FREEM_VERSION_MOD}.orig.tar.gz"
 TARDIR="${TMPDIR}/freem-${FREEM_VERSION}"  TARDIR="${TMPDIR}/freem-${FREEM_VERSION_MOD}"
   
 URL="https://freem.coherent-logic.com/downloads/freem-${FREEM_VERSION}.tar.gz"  URL="https://freem.coherent-logic.com/downloads/freem-${FREEM_VERSION}.tar.gz"
 echo -n "${PGM}:  downloading ${URL} to ${OUTFILE}..."  echo -n "${PGM}:  downloading ${URL} to ${OUTFILE}..."
Line 78  fi Line 85  fi
   
 echo -n "${PGM}:  extracting ${OUTFILE} to ${TARDIR}..."  echo -n "${PGM}:  extracting ${OUTFILE} to ${TARDIR}..."
 tar zxf "${OUTFILE}" -C "${TMPDIR}"  tar zxf "${OUTFILE}" -C "${TMPDIR}"
   if [[ "${FREEM_VERSION}" != "${FREEM_VERSION_MOD}" ]]
   then
       mv "${TMPDIR}/freem-${FREEM_VERSION}" "${TMPDIR}/freem-${FREEM_VERSION_MOD}"
   fi
 if [[ $? == 0 ]]  if [[ $? == 0 ]]
 then  then
     echo "[OK]"      echo "[OK]"
Line 96  else Line 107  else
     exit 1      exit 1
 fi  fi
   
 sed -i "s/FREEM_VERSION/${FREEM_VERSION}-${FDPKG_VERSION}/g" "${TARDIR}/debian/changelog"  sed -i "s/FREEM_VERSION/${FREEM_VERSION_MOD}-${FDPKG_VERSION}/g" "${TARDIR}/debian/changelog"
   sed -i "s/FREEM_VERSION/${FREEM_VERSION}-${FDPKG_VERSION}/g" "${TARDIR}/debian/control"
   
 echo "${PGM}:  building the package..."  echo "${PGM}:  building the package..."
 cd "${TARDIR}"  cd "${TARDIR}"

Removed from v.1.4  
changed lines
  Added in v.1.6


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>