File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ RUN wget https://downloads.sourceforge.net/reactos/RosBE-Unix-2.2.1.tar.bz2 \
3232 && rm -rf RosBE-Unix-2.2.1
3333
3434RUN git clone https://github.com/reactos/Release_Engineering \
35-
3635 && mv Release_Engineering/Release_* /usr/local/bin \
3736 && rm -rf Release_Engineering
3837
Original file line number Diff line number Diff line change 4646 git checkout " ${branch_name} " || exit 1
4747fi
4848
49- # Get the suffix from Git if none was entered.
49+ # Get the version from Git if none was entered.
5050if [ " ${version} " = " " ]; then
51- version=` git describe --abbrev=0`
51+ # Output something like '0.4.15-4-ge1e96bf467b5ea'
52+ version_with_hash=` git describe --always`
53+ # Extract the part before the last dash to ignore the commit hash
54+ version=${version_with_hash% -* }
5255fi
5356
5457# Write the config file
Original file line number Diff line number Diff line change @@ -13,13 +13,20 @@ if [ "$ROS_ARCH" = "" ]; then
1313 exit 1
1414fi
1515
16+ if [ " $ROS_ARCH " = " i386" ]; then
17+ ROS_PRETTY_ARCH=" x86"
18+ else
19+ ROS_PRETTY_ARCH=" $ROS_ARCH "
20+ fi
21+
22+
1623# Constants
1724ROOTDIR=" $PWD "
1825OUTPUTDIR=" output-MinGW-i386"
19- BOOTCDISO=" ReactOS-${version} -${ROS_ARCH } .iso"
20- BOOTCDZIP=" ReactOS-${version} -${ROS_ARCH } -iso.zip"
21- LIVECDISO=" ReactOS-${version} -${ROS_ARCH } -live.iso"
22- LIVECDZIP=" ReactOS-${version} -${ROS_ARCH } -live.zip"
26+ BOOTCDISO=" ReactOS-${version} -${ROS_PRETTY_ARCH } .iso"
27+ BOOTCDZIP=" ReactOS-${version} -${ROS_PRETTY_ARCH } -iso.zip"
28+ LIVECDISO=" ReactOS-${version} -${ROS_PRETTY_ARCH } -live.iso"
29+ LIVECDZIP=" ReactOS-${version} -${ROS_PRETTY_ARCH } -live.zip"
2330
2431# Start from a clean state
2532rm -f " ${ROOTDIR} /${BOOTCDZIP} "
You can’t perform that action at this time.
0 commit comments