projects
/
projects.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
posaune
[projects.git]
/
debian
/
timetracker.prepare
1
#!/bin/bash
2
set -e
3
4
mkdir -p Downloads
5
cd Downloads
6
7
if [ -d timetracker ]
8
then
9
cd timetracker
10
git fetch -t
11
else
12
git clone https://github.com/anuko/timetracker
13
cd timetracker
14
fi
15
16
# determine version
17
version=$(grep "APP_VERSION" initialize.php |sed 's/define("APP_VERSION", "//' |sed 's/".*//')
18
echo $version
19
echo "version=$version" >> ../../debian/setenv.sh
20