-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathRelease_Source
More file actions
executable file
·35 lines (29 loc) · 889 Bytes
/
Release_Source
File metadata and controls
executable file
·35 lines (29 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# ReactOS Release Engineering Scripts
# Release_Source - Create the "-src.zip" package
# Sanity checks
if ! source ./Release_Config; then
echo "Please run Release_Configure first!"
exit 1
fi
if [ "$ROS_ARCH" = "" ]; then
echo "Please run this script inside RosBE!"
exit 1
fi
# Constants
ROOTDIR="$PWD"
EXPORTDIR="ReactOS-${version}"
SOURCEZIP="ReactOS-${version}-src.zip"
# Start from a clean state
rm -f "${ROOTDIR}/${SOURCEZIP}"
# Create the ZIP package
cd "${REPODIR}"
git archive --format=zip --prefix="${EXPORTDIR}/" -9 --output="${ROOTDIR}/${SOURCEZIP}" "${branch_name}" || exit 1
# We're done!
echo
echo "*******************************************************************************"
echo "Successfully created the following packages:"
echo
echo " - ${SOURCEZIP}"
echo "*******************************************************************************"
echo