3 # Print commands as they run
9 # Set 'release' mode if requested, influences commitid.sh
16 if [ "$arg" = "--release" ]
21 echo "Unrecognized argument '$arg'"
27 echo "Unrecognized argument '$arg'"
32 # Make sure the working copy and index are completely clean
33 git
diff --quiet --exit-code HEAD
35 # Get in position to process build scripts
38 # Emit a static indicator of the original commit
39 SRCBASE
=`pwd` .
/commitid.sh
43 # Symlink hwloc in temporarily
44 ln -s ..
/..
/contrib
/hwloc hwloc
46 # Run autotools so users don't need to
50 git add
-f aclocal.
m4 configure conv-autoconfig.h.
in
55 # Done with build scripts
58 # Stage all of the modified files
61 # Get an identifier for the current state of the code
62 object_id
=`git write-tree`
64 # Construct the target file/folder name
65 version
="charm-$(cat src/scripts/VERSION)"
67 # Generate the distribution tarball
68 git archive
--format=tar.gz
--prefix="$version/" -o $version.
tar.gz
$object_id
70 # And clean up the mess we made