-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathupdate.sh
executable file
·45 lines (35 loc) · 955 Bytes
/
update.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
# resync this library with the upstream project
rm -fr statsite
git clone https://github.com/armon/statsite.git
VERS=`head -n1 statsite/CHANGELOG.md |cut -f2 -d' '`
echo "AC_INIT([libstatsite], [${VERS}])" > configure.ac
cat configure.ac.tpl >> configure.ac
for i in deps/murmurhash deps/inih src; do
cp statsite/$i/*.c src
cp statsite/$i/*.h include/statsite
done
for i in config conn_handler networking statsite streaming; do
rm -f src/$i.c;
rm -f include/statsite/$i.h
done
pushd src
cp Makefile.am.tpl Makefile.am
for i in *.c; do
echo "libstatsite_la_SOURCES += $i" >> Makefile.am
done
popd
pushd include
cp statsite.h.tpl statsite.h
for i in statsite/*.h; do
echo "#include <$i>" >> statsite.h;
done
pushd statsite
cp Makefile.am.tpl Makefile.am
for i in *.h; do
echo "statsiteinclude_HEADERS += $i" >> Makefile.am
done
popd
popd
rm -fr statsite
git co include/statsite/MurmurHash3.h src/MurmurHash3.c