comparison tools/patch-tool-mxe @ 2598:bd76c971f875

patch tool: check preconditions for init
author Ryan Pavlik <rpavlik@iastate.edu>
date Mon, 07 May 2012 12:55:52 -0500
parents 31a737274b4d
children a681265e116f
comparison
equal deleted inserted replaced
2597:31a737274b4d 2598:bd76c971f875
44 } 44 }
45 # init 45 # init
46 function init_git { 46 function init_git {
47 setupEnv 47 setupEnv
48 cd $gitsdir 48 cd $gitsdir
49
50 if [ -d $gitsdir/$pkg_subdir ]; then
51 echo "Error: $gitsdir/$pkg_subdir already exists. Cancelling init." >&2
52 exit 1
53 fi
49 54
50 echo "Checking for cached $pkg_file" 55 echo "Checking for cached $pkg_file"
51 if [ ! -f $mxedir/pkg/$pkg_file ]; then 56 if [ ! -f $mxedir/pkg/$pkg_file ]; then
52 make -C "$mxedir" download-$pkg 57 make -C "$mxedir" download-$pkg
53 echo "Building the mxe Makefile target 'download-$pkg' to get missing file" 58 echo "Building the mxe Makefile target 'download-$pkg' to get missing file"