-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #213 from icy/cygwin
Initial support for Cygwin, closes #206
- Loading branch information
Showing
5 changed files
with
119 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/usr/bin/env sh | ||
|
||
# Purpose : pacman-style wrapper for cygwin/apt-cyg tool | ||
# Authors : Ky-Anh Huynh (icy) | ||
# Date : 2021-10-04 | ||
# License : Public domain | ||
|
||
_apt_cyg_init() { | ||
: | ||
} | ||
|
||
apt_cyg_Ss() { | ||
apt-cyg search "$@" | ||
} | ||
|
||
apt_cyg_S() { | ||
apt-cyg install "$@" | ||
} | ||
|
||
apt_cyg_Sy() { | ||
apt-cyg update "$@" | ||
} | ||
|
||
apt_cyg_Q() { | ||
apt-cyg list "$@" | ||
} | ||
|
||
apt_cyg_Qi() { | ||
apt-cyg show "$@" | ||
} | ||
|
||
apt_cyg_Ql() { | ||
for pkg in "$@"; do | ||
if [ "$_TOPT" = "q" ]; then | ||
apt-cyg listfiles "$pkg" | ||
else | ||
apt-cyg listfiles "$pkg" \ | ||
| pkg="$pkg" \ | ||
awk '{printf("%s %s\n", ENVIRON["pkg"], $0)}' | ||
fi | ||
done | ||
} | ||
|
||
apt_cyg_R() { | ||
apt-cyg remove "$@" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters