8 |
. ./auto_build_defs.sh |
. ./auto_build_defs.sh |
9 |
fi |
fi |
10 |
|
|
11 |
|
export OVERRIDE_TMP_BUILD_PATH_SAVE="$OVERRIDE_TMP_BUILD_PATH" |
12 |
|
|
13 |
export DISABLE_AUTO_BRANCH="0" |
export DISABLE_AUTO_BRANCH="0" |
14 |
export DISABLE_PREBUILD="0" |
export DISABLE_PREBUILD="0" |
15 |
export DISABLE_CLEANUP="0" |
export DISABLE_CLEANUP="0" |
44 |
|
|
45 |
# call auto prebuild |
# call auto prebuild |
46 |
if [ "$DISABLE_PREBUILD" == "0" ] ; then |
if [ "$DISABLE_PREBUILD" == "0" ] ; then |
47 |
if [ "$AUTO_PREBUILD_DONE" == "" ] ; then |
export PREBUILD_SUCCESS="0" |
48 |
"$downstream_export_location/auto_prebuild_latest_upstream.sh" |
"$downstream_export_location/auto_prebuild_latest_upstream.sh" "$OVERRIDE_TMP_BUILD_PATH_SAVE" && PREBUILD_SUCCESS="1" || PREBUILD_SUCCESS="0" |
49 |
if [ "$AUTO_PREBUILD_DONE" != "true" ] ; then |
if [ "$PREBUILD_SUCCESS" == "0" ] ; then |
50 |
echo "PREBUILD FAILED..." |
echo "PREBUILD FAILED!" |
51 |
exit 1 |
exit 1 |
|
fi |
|
52 |
fi |
fi |
53 |
else |
else |
54 |
echo "PREBUILD HAS BEEN DISABLED ... to enable do not use --no-prebuild" |
echo "PREBUILD HAS BEEN DISABLED ... to enable do not use --no-prebuild" |
80 |
echo "PERFORMING POSTBUILD:" |
echo "PERFORMING POSTBUILD:" |
81 |
echo -e "\\tCOPYING $PCSX2_BUILD_TMP/bin/* $downstream_export_location/trunk/bin/ ... {}" |
echo -e "\\tCOPYING $PCSX2_BUILD_TMP/bin/* $downstream_export_location/trunk/bin/ ... {}" |
82 |
cp -Rfv "$PCSX2_BUILD_TMP/bin"/* "$downstream_export_location/trunk/bin/" >/dev/null 2>/dev/null |
cp -Rfv "$PCSX2_BUILD_TMP/bin"/* "$downstream_export_location/trunk/bin/" >/dev/null 2>/dev/null |
83 |
|
|
84 |
|
# commit newly built files in trunk |
85 |
|
cd "$downstream_export_location/trunk/bin/" |
86 |
|
# add the newly built files to svn |
87 |
|
find -not -path "*.svn*" \ |
88 |
|
-not -name "*.bsc" \ |
89 |
|
-not -name "*.exp" \ |
90 |
|
-not -name "*.ilk" \ |
91 |
|
-not -name "*.lib" -exec bash -c ' |
92 |
|
#echo "{}" |
93 |
|
if [ "{}" != "." ] ; then |
94 |
|
export svn_file=`echo "{}" | sed s/".\/"//` |
95 |
|
export svn_need_to_add=`svn status | grep "$svn_file"` |
96 |
|
if [ "$svn_need_to_add" != "" ] ; then |
97 |
|
svn add "{}" >/dev/null 2>/dev/null |
98 |
|
fi |
99 |
|
fi |
100 |
|
' \; |
101 |
|
svn commit -m "Committing Build: $PCSX2_VERSION" --non-interactive --trust-server-cert >/dev/null 2>/dev/null |
102 |
|
|
103 |
|
|
104 |
echo "POSTBUILD COMPLETED..." |
echo "POSTBUILD COMPLETED..." |
105 |
# END POST BUILD |
# END POST BUILD |
106 |
|
|
120 |
echo "AUTOBUILD COMPLETE..." |
echo "AUTOBUILD COMPLETE..." |
121 |
# perform auto tagging |
# perform auto tagging |
122 |
if [ "$DISABLE_AUTO_BRANCH" == "0" ] ; then |
if [ "$DISABLE_AUTO_BRANCH" == "0" ] ; then |
123 |
|
cd "$downstream_export_location" |
124 |
# Always force auto branch update after building |
# Always force auto branch update after building |
125 |
"$downstream_export_location/auto_branch_latest_upstream.sh" --force-update |
"$downstream_export_location/auto_branch_latest_upstream.sh" --force-update |
126 |
else |
else |