Patchwork Patch committed: Add support for Go tarball to gcc_release

login
register
mail settings
Submitter Ian Taylor
Date Dec. 8, 2010, 11:56 p.m.
Message ID <mcrei9rhl8n.fsf@google.com>
Download mbox | patch
Permalink /patch/74803/
State New
Headers show

Comments

Ian Taylor - Dec. 8, 2010, 11:56 p.m.
I committed this patch to the gcc_release script to add support for
building a separate Go tarball.  I didn't really test this, but the
changes seem straightforward.  Please let me know about any problems.

Ian


2010-12-08  Ian Lance Taylor  <iant@google.com>

	* gcc_release: Add support for releasing Go as a separate
	tarball.

Patch

Index: gcc_release
===================================================================
--- gcc_release	(revision 167572)
+++ gcc_release	(working copy)
@@ -286,6 +286,7 @@  build_tarfiles() {
   maybe_build_tarfile gcc-ada-${RELEASE} ${ADA_DIRS}
   maybe_build_tarfile gcc-g++-${RELEASE} ${CPLUSPLUS_DIRS}
   maybe_build_tarfile gcc-fortran-${RELEASE} ${FORTRAN95_DIRS}
+  maybe_build_tarfile gcc-go-${RELEASE} ${GO_DIRS}
   maybe_build_tarfile gcc-java-${RELEASE} ${JAVA_DIRS}
   maybe_build_tarfile gcc-objc-${RELEASE} ${OBJECTIVEC_DIRS}
   maybe_build_tarfile gcc-testsuite-${RELEASE} ${TESTSUITE_DIRS}
@@ -293,7 +294,7 @@  build_tarfiles() {
   # The core is everything else.
   EXCLUDES=""
   for x in ${ADA_DIRS} ${CPLUSPLUS_DIRS} ${FORTRAN95_DIRS}\
-	   ${JAVA_DIRS} ${OBJECTIVEC_DIRS} ${TESTSUITE_DIRS}; do
+	   ${GO_DIRS} ${JAVA_DIRS} ${OBJECTIVEC_DIRS} ${TESTSUITE_DIRS}; do
     EXCLUDES="${EXCLUDES} --exclude $x"
   done
   build_tarfile gcc-core-${RELEASE} ${EXCLUDES} \
@@ -315,7 +316,7 @@  build_diffs() {
   old_vers=${old_file%.tar.bz2}
   old_vers=${old_vers#gcc-}
   inform "Building diffs against version $old_vers"
-  for f in gcc gcc-ada gcc-g++ gcc-fortran gcc-java gcc-objc gcc-testsuite gcc-core; do
+  for f in gcc gcc-ada gcc-g++ gcc-fortran gcc-go gcc-java gcc-objc gcc-testsuite gcc-core; do
     old_tar=${old_dir}/${f}-${old_vers}.tar.bz2
     new_tar=${WORKING_DIRECTORY}/${f}-${RELEASE}.tar.bz2
     if [ ! -e $old_tar ]; then
@@ -445,6 +446,7 @@  with the following options: <code>"svn:/
   snapshot_print gcc-ada-${RELEASE}.tar.bz2 "Ada front end and runtime"
   snapshot_print gcc-fortran-${RELEASE}.tar.bz2 "Fortran front end and runtime"
   snapshot_print gcc-g++-${RELEASE}.tar.bz2 "C++ front end and runtime"
+  snapshot_print gcc-go-${RELEASE}.tar.bz2 "Go front end and runtime"
   snapshot_print gcc-java-${RELEASE}.tar.bz2 "Java front end and runtime"
   snapshot_print gcc-objc-${RELEASE}.tar.bz2 "Objective-C front end and runtime"
   snapshot_print gcc-testsuite-${RELEASE}.tar.bz2 "The GCC testsuite"
@@ -552,6 +554,7 @@  SOURCE_DIRECTORY=""
 ADA_DIRS="gcc/ada libada gnattools"
 CPLUSPLUS_DIRS="gcc/cp libstdc++-v3"
 FORTRAN95_DIRS="gcc/fortran libgfortran"
+GO_DIRS="gcc/go libgo libffi"
 JAVA_DIRS="gcc/java libjava libffi boehm-gc"
 OBJECTIVEC_DIRS="gcc/objc gcc/objcp libobjc"
 TESTSUITE_DIRS="gcc/testsuite"
@@ -698,6 +701,7 @@  SOURCE_DIRECTORY="${WORKING_DIRECTORY}/g
 ADA_DIRS=`adjust_dirs ${ADA_DIRS}`
 CPLUSPLUS_DIRS=`adjust_dirs ${CPLUSPLUS_DIRS}`
 FORTRAN95_DIRS=`adjust_dirs ${FORTRAN95_DIRS}`
+GO_DIRS=`adjust_dirs ${GO_DIRS}`
 JAVA_DIRS=`adjust_dirs ${JAVA_DIRS}`
 OBJECTIVEC_DIRS=`adjust_dirs ${OBJECTIVEC_DIRS}`
 TESTSUITE_DIRS=`adjust_dirs ${TESTSUITE_DIRS}`