Taskwarrior/build.sh

22 lines
420 B
Bash
Raw Normal View History

2015-08-01 16:43:41 -05:00
#!/bin/bash
TASKWARRIOR=$1
2015-12-24 04:22:32 -06:00
[ -d build ] || mkdir build
if [ -f build/taskwarrior-$TASKWARRIOR ]
then
exit;
fi
cd build
wget http://taskwarrior.org/download/task-$TASKWARRIOR.tar.gz || exit
2015-08-01 16:43:41 -05:00
gunzip task-$TASKWARRIOR.tar.gz
tar xf task-$TASKWARRIOR.tar
cd task-$TASKWARRIOR
2015-12-23 09:25:29 -06:00
cmake -DCMAKE_BUILD_TYPE=release .
make
2015-08-01 16:43:41 -05:00
cd ..
cp task-$TASKWARRIOR/src/task ./taskwarrior-$TASKWARRIOR
sudo rm -Rf task-$TASKWARRIOR*
2015-12-24 04:22:32 -06:00
cd ..