Skip to content

Commit

Permalink
Added "cygwin-easy" directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitone committed Feb 4, 2008
1 parent 8bec757 commit 8d87882
Show file tree
Hide file tree
Showing 5 changed files with 1,082 additions and 0 deletions.
25 changes: 25 additions & 0 deletions cygwin-easy/etc/easy-update.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# easy-update configuration file

self_update=1
self_dir="/usr/share/cygwin-easy"
self_files=(autorun.sh profile.patch)

setup_update=1
setup_url="http://cygwin.com/setup/snapshots/?C=M;O=D"
setup_download_url="http://cygwin.com/setup/snapshots"
setup_default_url="http://www.cygwin.com/setup.exe"

console_update=1
console_dir="console"
console_url="http://sourceforge.net/export/rss2_projfiles.php?group_id=43764"
console_download_url="http://downloads.sourceforge.net/console"

cygeasy_update=1
cygeasy_files=(autorun.bat autorun.inf changelog.txt license.txt leggimi.txt readme.txt)
cygeasy_download_url="http://cygwin-easy.googlecode.com/svn/trunk"
cygeasy_custom=0

readme_update=1
readme_files=(leggimi.txt readme.txt)
pkglist_update=1
autoplay_update=1
45 changes: 45 additions & 0 deletions cygwin-easy/etc/postinstall/cygwin-easy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#! /bin/sh

# cygwin-easy.sh - Copyright 2007-2008 Stefano Cotta Ramusino.
# ============================================================
# Written by Stefano Cotta Ramusino, March 2007.
# Modified by Stefano Cotta Ramusino, February 2008.
#
# Based on lnk.update.sh posted to the Cygwin mailing list by Fergus
# http://www.cygwin.com/ml.cygwin/2003-07/msg01117.html.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 3 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.

if [[ "$1" == "--force" || ! -e /etc/postinstall/cygwin-easy.sh.done ]]
then

if [[ ! -e /usr/share/icons/cygwin.ico && -e /cygwin.ico ]]
then

[ ! -e /usr/share/icons ] && mkdir -p /usr/share/icons
cp -f /cygwin.ico /usr/share/icons/cygwin.ico

fi

[ ! -e /tmp ] && mkdir /tmp

find / -mount \( -path /usr/lib -o -path /usr/bin \) -prune -o -type l \
! \( -path /etc/hosts -o -path /etc/protocols -o -path /etc/services -o -path /etc/networks \) \
-printf "/bin/rm %p\n/bin/ln -s %l %p\n" > /tmp/cygrelnk

source /tmp/cygrelnk

rm -f /tmp/cygrelnk

fi
Loading

0 comments on commit 8d87882

Please sign in to comment.