Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 %scip-debian debian node-autolinker 1.8.3+dfsg-5 node-autolinker/rules/`%`().:
8 dh $@
9
10 export VERSIONscip-debian debian node-autolinker 1.8.3+dfsg-5 node-autolinker/rules/VERSION.=1.8.3
11 define BANNERscip-debian debian node-autolinker 1.8.3+dfsg-5 node-autolinker/rules/BANNER.
12 /*!
13 * Autolinker.js
14 * $(VERSION)
15 *
16 * Copyright(c) 2018 Gregory Jacobs <greg@greg-jacobs.com>
17 * MIT License
18 *
19 * https://github.com/gregjacobs/Autolinker.js
20 */
21 endef
22 export BANNERscip-debian debian node-autolinker 1.8.3+dfsg-5 node-autolinker/rules/BANNER.
23
24 export SOURCEscip-debian debian node-autolinker 1.8.3+dfsg-5 node-autolinker/rules/SOURCE.=src/Autolinker.js \
25 src/Util.js \
26 src/HtmlTag.js \
27 src/RegexLib.js \
28 src/AnchorTagBuilder.js \
29 src/htmlParser/HtmlParser.js \
30 src/htmlParser/HtmlNode.js \
31 src/htmlParser/CommentNode.js \
32 src/htmlParser/ElementNode.js \
33 src/htmlParser/EntityNode.js \
34 src/htmlParser/TextNode.js \
35 src/match/Match.js \
36 src/match/Email.js \
37 src/match/Hashtag.js \
38 src/match/Phone.js \
39 src/match/Mention.js \
40 src/match/Url.js \
41 src/matcher/TldRegex.js \
42 src/matcher/Matcher.js \
43 src/matcher/Email.js \
44 src/matcher/Hashtag.js \
45 src/matcher/Phone.js \
46 src/matcher/Mention.js \
47 src/matcher/Url.js \
48 src/matcher/UrlMatchValidator.js \
49 src/truncate/TruncateEnd.js \
50 src/truncate/TruncateMiddle.js \
51 src/truncate/TruncateSmart.js
52
53 override_dh_auto_buildscip-debian debian node-autolinker 1.8.3+dfsg-5 node-autolinker/rules/override_dh_auto_build().:
54 mkdir -p dist
55
56 echo -n 'Autolinker.tldRegex = /(?:' > src/matcher/TldRegex.js
57 cat debian/tlds-alpha-by-domain.txt \
58 | sed '1d' \
59 | tr '[:upper:]' '[:lower:]' \
60 | while read line; do echo $$line; if [ "${line:0:4scip-debian debian node-autolinker 1.8.3+dfsg-5 node-autolinker/rules/`line:0:4`.}" = "xn--" ]; then node -e "console.log(require('punycode').toUnicode('$$line'));"; fi; done \
61 | sort -u \
62 | tr '\n' '|' \
63 >> src/matcher/TldRegex.js
64 echo ')/;' >> src/matcher/TldRegex.js
65
66 echo "$$BANNER" > dist/Autolinker.js
67 cat $$SOURCE \
68 | sed "s/\/\* @echo VERSION \*\//$$VERSION/g" - \
69 | umd Autolinker \
70 >> dist/Autolinker.js
71
72 sed '/\/\/ @if DEBUG/,/\/\/ @endif/d' dist/Autolinker.js \
73 | uglifyjs \
74 > dist/Autolinker.min.js