rockbox/utils/nwztools/upgtools/make_release.sh
Amaury Pouly 1b5e824405 nwztool/upgtool: add support for compression
To decompress some output file(s), simply pass -z <idx> where idx is the index
of the file to decompress, starting from 0. For example
  upgtool -e NW_WM_FW.UPG -o tmp/ -m nw-wm1a -z 6 -z 7
to decompress files 6 and 7. To compress file, use the same options:
  upgtool -c NW_WM_FW.UPG -m nw-wm1a -z 2 script.sh md5sum.txt system.img

Change-Id: I1ef0b3e02c98e58154f1a959fb1ad70ad2ce6500
2020-10-11 13:08:03 +02:00

15 lines
363 B
Bash
Executable file

#!/bin/bash
if [ $# -ne 1 ];
then
echo "usage: $0 version"
exit 1
fi
ver="$1"
echo "version: $ver"
echo "Building windows version..."
make PREFIX=i686-w64-mingw32- EXE_EXT=.exe clean && make PREFIX=i686-w64-mingw32- EXE_EXT=.exe && cp upgtool.exe upgtool-v${ver}.exe
echo "Building linux version..."
make clean && make && cp upgtool upgtool_64-v${ver}