Skip to content

Instantly share code, notes, and snippets.

@tr-github
Last active February 15, 2016 00:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tr-github/8182004 to your computer and use it in GitHub Desktop.
Save tr-github/8182004 to your computer and use it in GitHub Desktop.
APT-CYG Common/Initial packages
#!/bin/bash
#
# Cygwin packages
#
packages=(
curl
cygutils
grep
gzip
ncurses
sed
which
rsync
ruby
subversion
git
bc
mysql
make
gcc4-core
gcc4-g++
gcc4
tcl
lftp
libsqlite3-devel
sqlite3
)
#
# Gems
#
gems=(
git-up
semver
compass
mailcatcher
)
# Installing Cygwin packages
len=${#packages[*]}
i=0
while [ $i -lt $len ]; do
package=${packages[$i]}
count=$[$i +1]
echo -e " \n\n\n\n-------------------> Cygwin ($count/$len) : installing $package"
apt-cyg install "$package"
let i++
done
# Installing Cygwin packages
len=${#gems[*]}
i=0
while [ $i -lt $len ]; do
gem=${gems[$i]}
count=$[$i +1]
echo -e " \n\n\n\n-------------------> Ruby Gem ($count/$len) : installing $gem"
gem install "$gem" --verbose
let i++
done
echo -e "Done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment