Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nltk
Overview
Overview
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
nltk
Commits
9d001f10
Commit
9d001f10
authored
Aug 14, 2012
by
Ewan Klein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified Makefile targets for rebuilding data index file
parent
5de11e9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
examples/grammars/Makefile
+13
-8
No files found.
examples/grammars/Makefile
View file @
9d001f10
...
...
@@ -5,28 +5,34 @@
# URL: <http://www.nltk.org/>
# For license information, see LICENSE.TXT
PUBLISH
=
../../../nltk_data/packages/grammars
DATADIR
=
../../../nltk_data
PUBLISH
=
$(DATADIR)
/packages/grammars
PACKAGE_DIRS
=
book_grammars sample_grammars
#basque_grammars spanish_grammars
PACKAGES
:=
$
(
addsuffix .zip,
$(PACKAGE_DIRS)
)
ZIP
=
zip
define
remove
$(if
$(wildcard
$1),
rm
$1,)
endef
all
:
publish
ci
:
svn
ci
-m
"updated grammar files"
git
ci
-m
"updated grammar files"
zip
:
clean $(PACKAGES)
clean
:
rm
*
.zip
$
(
call remove,
*
.zip
)
%.zip
:
%
$(ZIP)
-r
$<
$<
-x
\*
.svn
*
$(ZIP)
-r
$<
$<
git add
*
zip
publish
:
zip
cp
$(PACKAGES)
$(PUBLISH)
svn commit
-m
"updated grammar files"
../../../nltk_data/packages/grammars
$(MAKE)
-C
../.. pkg_index
\ No newline at end of file
$(MAKE)
-C
$(DATADIR)
grammars
$(MAKE)
-C
$(DATADIR)
pkg_index
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