File tree Expand file tree Collapse file tree 14 files changed +34
-34
lines changed
Expand file tree Collapse file tree 14 files changed +34
-34
lines changed Original file line number Diff line number Diff line change 11# syntax=docker/dockerfile:1
22FROM alpine:latest
33
4- WORKDIR /grepdom
5- COPY build/grepdom ./
6- ENTRYPOINT ["/grepdom/grepdom " ]
4+ WORKDIR /grepdomain
5+ COPY build/grepdomain ./
6+ ENTRYPOINT ["/grepdomain/grepdomain " ]
Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ ROOT=$DIR/..
99
1010VSN=$1
1111
12- $ROOT /scripts/build-all-platforms.sh " grepdom " $VSN
12+ $ROOT /scripts/build-all-platforms.sh " grepdomain " $VSN
Original file line number Diff line number Diff line change 77DIR=` dirname $0 `
88ROOT=$DIR /..
99
10- $ROOT /scripts/build.sh " grepdom "
10+ $ROOT /scripts/build.sh " grepdomain "
Original file line number Diff line number Diff line change 22
33VSN=1.0.0
44
5- curl -LO https://github.com/ipinfo/cli/releases/download/grepdom -${VSN} /grepdom_ ${VSN} .deb
6- sudo dpkg -i grepdom_ ${VSN} .deb
7- rm grepdom_ ${VSN} .deb
5+ curl -LO https://github.com/ipinfo/cli/releases/download/grepdomain -${VSN} /grepdomain_ ${VSN} .deb
6+ sudo dpkg -i grepdomain_ ${VSN} .deb
7+ rm grepdomain_ ${VSN} .deb
88
99echo
10- echo ' You can now run `grepdom `' .
10+ echo ' You can now run `grepdomain `' .
1111
1212if [ -f " $0 " ]; then
1313 rm $0
Original file line number Diff line number Diff line change 1- Source: grepdom
1+ Source: grepdomain
22Section: utils
33Version: 1.0.0
44Priority: optional
55Maintainer: IPinfo <support@ipinfo.io>
66Vcs-Git: https://github.com/ipinfo/cli
77Vcs-browser: https://github.com/ipinfo/cli
88Homepage: https://ipinfo.io
9- Package: grepdom
9+ Package: grepdomain
1010Architecture: amd64
1111Description: A grep-like tool for matching domain names.
Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ ROOT=$DIR/..
1111VSN=$1
1212RELEASE=$2
1313
14- $ROOT /scripts/docker.sh " grepdom " $VSN $RELEASE
14+ $ROOT /scripts/docker.sh " grepdomain " $VSN $RELEASE
Original file line number Diff line number Diff line change 33VSN=1.0.0
44PLAT=darwin_amd64
55
6- curl -LO https://github.com/ipinfo/cli/releases/download/grepdom -${VSN} /grepdom_ ${VSN} _${PLAT} .tar.gz
7- tar -xf grepdom_ ${VSN} _${PLAT} .tar.gz
8- rm grepdom_ ${VSN} _${PLAT} .tar.gz
9- mv grepdom_ ${VSN} _${PLAT} /usr/local/bin/grepdom
6+ curl -LO https://github.com/ipinfo/cli/releases/download/grepdomain -${VSN} /grepdomain_ ${VSN} _${PLAT} .tar.gz
7+ tar -xf grepdomain_ ${VSN} _${PLAT} .tar.gz
8+ rm grepdomain_ ${VSN} _${PLAT} .tar.gz
9+ mv grepdomain_ ${VSN} _${PLAT} /usr/local/bin/grepdomain
1010
1111echo
12- echo ' You can now run `grepdom `' .
12+ echo ' You can now run `grepdomain `' .
1313
1414if [ -f " $0 " ]; then
1515 rm $0
Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ ROOT=$DIR/..
99
1010VSN=$1
1111
12- $ROOT /scripts/release.sh " grepdom " $VSN
12+ $ROOT /scripts/release.sh " grepdomain " $VSN
Original file line number Diff line number Diff line change 11$VSN = " 1.0.0"
22
33# build the filename for the Zip archive and exe file
4- $FileName = " grepdom_ $ ( $VSN ) _windows_amd64"
4+ $FileName = " grepdomain_ $ ( $VSN ) _windows_amd64"
55$ZipFileName = " $ ( $FileName ) .zip"
66
77# download and extract zip
8- Invoke-WebRequest - Uri " https://github.com/ipinfo/cli/releases/download/grepdom -$VSN /$FileName .zip" - OutFile ./ $ZipFileName
8+ Invoke-WebRequest - Uri " https://github.com/ipinfo/cli/releases/download/grepdomain -$VSN /$FileName .zip" - OutFile ./ $ZipFileName
99Unblock-File ./ $ZipFileName
1010Expand-Archive - Path ./ $ZipFileName - DestinationPath $env: LOCALAPPDATA \ipinfo - Force
1111
1212# delete if already exists
13- if (Test-Path " $env: LOCALAPPDATA \ipinfo\grepdom .exe" ) {
14- Remove-Item " $env: LOCALAPPDATA \ipinfo\grepdom .exe"
13+ if (Test-Path " $env: LOCALAPPDATA \ipinfo\grepdomain .exe" ) {
14+ Remove-Item " $env: LOCALAPPDATA \ipinfo\grepdomain .exe"
1515}
16- Rename-Item - Path " $env: LOCALAPPDATA \ipinfo\$FileName .exe" - NewName " grepdom .exe"
16+ Rename-Item - Path " $env: LOCALAPPDATA \ipinfo\$FileName .exe" - NewName " grepdomain .exe"
1717
1818# setting up env.
1919$PathContent = [Environment ]::GetEnvironmentVariable(' path' , ' Machine' )
3131
3232# cleaning files
3333Remove-Item - Path ./ $ZipFileName
34- " You can use grepdom now."
34+ " You can use grepdomain now."
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Commands:
2727 prips print IP list from CIDR or range.
2828 grepip grep for IPs matching criteria from any source.
2929 matchip print the overlapping IPs and subnets.
30- grepdom grep for domains matching criteria from any source.
30+ grepdomain grep for domains matching criteria from any source.
3131 cidr2range convert CIDRs to IP ranges.
3232 cidr2ip convert CIDRs to individual IPs within those CIDRs.
3333 range2cidr convert IP ranges to CIDRs.
You can’t perform that action at this time.
0 commit comments