Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dcs_classifier
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
dcs_classifier
Commits
9703512b
Commit
9703512b
authored
Mar 08, 2014
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fetch dcs db and run fixup until dcs_test passes
parent
5cd810e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
2 deletions
+37
-2
configure.ac
configure.ac
+1
-0
Makefile.am
src/gen/Makefile.am
+36
-2
No files found.
configure.ac
View file @
9703512b
...
...
@@ -52,6 +52,7 @@ AC_CHECK_FILE([$DCS_DBFILE],
[if test "x$DCS_ACCOUNT" = x; then
AC_MSG_ERROR([Need existing DCS_DBFILE if no DCS_ACCOUNT given])
fi
DCS_DBFILE=dcs.db
])
############################################################
...
...
src/gen/Makefile.am
View file @
9703512b
...
...
@@ -3,6 +3,40 @@
BUILT_SOURCES
=
dcs_classifier.c dcs_classifier.h
dcs_classifier.c dcs_classifier.h
:
../gen_dcs_classifier.pl $(DCS_DBFILE)
../gen_dcs_classifier.pl
$(DCS_DBFILE)
$(DCS_KEY)
if
[[
-f
fixup.remove
]]
&&
[[
-f
fixup.reorder
]]
;
then
\
../gen_dcs_classifier.pl
$(DCS_DBFILE)
$(DCS_KEY)
fixup.remove fixup.reorder
;
\
else
\
../gen_dcs_classifier.pl
$(DCS_DBFILE)
$(DCS_KEY)
;
\
fi
CLEANFILES
=
dcs_classifier.c dcs_classifier.h
# fixup db
fixup.remove fixup.reorder fixup.out
:
../dcs_test
-
rm
fixup.remove fixup.reorder fixup.out
-
rm
dcs_classifier.c dcs_classifier.h
make dcs_classifier.c dcs_classifier.h
(
cd
..
;
make dcs_test
)
while
!
../dcs_test fixup.remove fixup.reorder
>>
fixup.out
;
do
\
(
rm
dcs_classifier.c dcs_classifier.h
;
\
if
!
make dcs_classifier.c dcs_classifier.h
;
then
break
;
fi
;
\
cd
..
;
make dcs_test
)
\
done
fixup
:
fixup.remove fixup.reorder
dcs.db.refresh
:
touch
dcs.db.refresh
dcs.db
:
dcs.db.refresh
curl
-H
'Content-Type: application/json'
\
-d
'{"profile":"", "uri":"/ds/classifier/get/account/'
$(DCS_ACCOUNT)
'", "token":"'
$(DCS_KEY)
'"}'
\
'https://dcs.netbiscuits.net/ds/classifier/get/account/'
$(DCS_ACCOUNT)
\
>
dcs.db.tmp
if
[[
-f
dcs.db
]]
;
then
\
if
!
diff
--brief
dcs.db dcs.db.tmp
>
/dev/null
;
then
\
mv
-f
dcs.db.tmp dcs.db
;
\
fi
;
\
else
\
mv
-f
dcs.db.tmp dcs.db
;
\
fi
CLEANFILES
=
dcs_classifier.c dcs_classifier.h fixup.remove fixup.reorder fixup.out dcs.db
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment