Skip to content

Commit

Permalink
update copy script
Browse files Browse the repository at this point in the history
  • Loading branch information
petrasovaa committed Nov 26, 2019
1 parent c70ce59 commit 2618d20
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions copy_to_grass_addons.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ set -e
if [ $# -lt 1 ] ; then
echo "Provide directory of the addon in a Git clone of grass-addons repo as a parameter"
echo "Usage: $0 /path/to/git/addons/grass7/raster/r.futures"
echo "Run in the directory which is a clone of the Git repository"
echo "Run in the directory which is a clone of the FUTURES Git repository"
exit 1
fi

cp -r r.futures/* $1
rm $1/r.futures.pga/Doxyfile
rm $1/r.futures.pga/incentive.svg
rm $1/r.futures.pga/futures_indent.sh
git archive HEAD r.futures/ | tar -x -C /tmp
rm /tmp/r.futures/r.futures.pga/Doxyfile
rm /tmp/r.futures/r.futures.pga/incentive.svg
rm /tmp/r.futures/r.futures.pga/futures_indent.sh
cp -r /tmp/r.futures/* $1
rm -rf /tmp/r.futures/

0 comments on commit 2618d20

Please sign in to comment.