found we needed to pull the remote version of the downstream master at times. not sure exactly why yet, but added a chunk to do this.
also ZSorter is temporary demo of a simple sorter method.
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
- <provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="-1666518130664051752" id="org.eclipse.cdt.managedbuilder.core.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
+ <provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="-1260941817250426252" id="org.eclipse.cdt.managedbuilder.core.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>
--- /dev/null
+package org.feistymeow.example;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+public class ZSorter<T extends Comparable<? super T>> {
+
+ /**
+ * returns a new list which is the sorted version of the input
+ * list "toSort".
+ */
+ public List<T> sort(List<T> toSort) {
+ List<T> toReturn = new ArrayList<T>(toSort);
+ Collections.copy(toReturn, toSort);
+ Collections.sort(toReturn);
+ return toReturn;
+ }
+
+ /**
+ * simple console printer for list of T.
+ */
+ public void print(List<T> toPrint) {
+ boolean first = true;
+ for (T curr: toPrint) {
+ if (!first) System.out.print(", ");
+ first = false;
+ System.out.print(curr);
+ }
+ System.out.println();
+ }
+
+ public static void main(String[] args) {
+ ZSorter<Integer> sorter = new ZSorter<Integer>();
+
+ List<Integer> theList
+ = new ArrayList<Integer>(Arrays.asList(101, 19, 86, 72, 56, 35, 47));
+ System.out.println("prior to sorting:");
+ sorter.print(theList);
+
+ // test our sort method.
+ List<Integer> newList = sorter.sort(theList);
+ System.out.println("after sorting:");
+ sorter.print(newList);
+ }
+}
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/>
- <provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="-1666518130664051752" id="org.eclipse.cdt.managedbuilder.core.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
+ <provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="-1260941817250426252" id="org.eclipse.cdt.managedbuilder.core.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>
perform_revctrl_action_on_file "$tempfile" do_careful_git_update
test_or_die "doing a careful git update on: $tempfile"
+# seems to be needed to cause a merge to be resolved.
+git pull downstream master
+# -m "unfortunate merge"
+test_or_die "running the git pull downstream master"
+
# send our little boat down the stream to the dependent repository.
git push downstream master
-test_or_die "running the git push downstream"
+test_or_die "running the git push downstream master"
popd &>/dev/null