summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Pavlik <rpavlik@iastate.edu>2012-05-07 17:45:03 (GMT)
committerMark Brand <mabrand@mabrand.nl>2012-06-13 16:22:32 (GMT)
commit82947d8dd446d24127ba51a84456cd17f9e2843c (patch)
tree35350f6a8c1905f440d7917e673da35309c660ea
parentcef822954cc43c40f169438c1093b434a8410cb4 (diff)
downloadmxe-82947d8dd446d24127ba51a84456cd17f9e2843c.zip
mxe-82947d8dd446d24127ba51a84456cd17f9e2843c.tar.gz
mxe-82947d8dd446d24127ba51a84456cd17f9e2843c.tar.bz2
Patch tool: Adding some progress messages to long processes.
-rwxr-xr-xtools/patch-tool-mxe9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/patch-tool-mxe b/tools/patch-tool-mxe
index e2f5e4c..48fec9c 100755
--- a/tools/patch-tool-mxe
+++ b/tools/patch-tool-mxe
@@ -46,19 +46,28 @@ setupEnv() {
function init_git {
setupEnv
cd $gitsdir
+
+ echo "Checking for cached $pkg_file"
if [ ! -f $mxedir/pkg/$pkg_file ]; then
make -C "$mxedir" download-$pkg
+ echo "Building the mxe Makefile target 'download-$pkg' to get missing file"
if [ ! $? -eq 0 ]; then
echo "Could not build target download-$pkg - cancelling init." >&2
exit 1
fi
fi
+
+ echo "Unpacking archive..."
echo $pkg_file | grep "\.tar\.gz" >> /dev/null && tar xf $mxedir/pkg/$pkg_file
echo $pkg_file | grep "\.tar\.bz2" >> /dev/null && tar xf $mxedir/pkg/$pkg_file
echo $pkg_file | grep "\.tar\.xz" >> /dev/null && xz -dc $mxedir/pkg/$pkg_file | tar xf -
echo $pkg_file | grep "\.zip" >> /dev/null && unzip $mxedir/pkg/$pkg_file >> /dev/null
+
+ echo "Initializing repo and adding all as first commit"
cd $gitsdir/$pkg_subdir && \
(git init; git add -A; git commit -m "init") > /dev/null
+
+ echo "Tagging distribution tarball state"
git tag dist
}