version 1.4, 2025/03/14 00:58:44
|
version 1.5, 2025/04/03 03:52:38
|
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.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 59 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 82 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}" |
|
mv "${TMPDIR}/freem-${FREEM_VERSION}" "${TMPDIR}/freem-${FREEM_VERSION_MOD}" |
if [[ $? == 0 ]] |
if [[ $? == 0 ]] |
then |
then |
echo "[OK]" |
echo "[OK]" |
Line 96 else
|
Line 101 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}" |