home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 December (Special) / PCWorld_2005-12_Special_cd.bin / Bezpecnost / lsti / lsti.exe / framework-2.5.exe / cygwin-doc.sh.done < prev    next >
Text File  |  2005-02-24  |  1KB  |  46 lines

  1. #!/bin/sh
  2. # cygwin-doc.sh
  3.  
  4. # determine if there is a Start Menu "Cygwin.lnk" directory, remove links if so
  5. CYGWIN_ASM="$(cygpath -AP)/Cygwin"
  6. if [ -d "$CYGWIN_ASM" ]; then
  7.     if [ -f "$CYGWIN_ASM/Cygwin FAQ.lnk" ]; then
  8.         /bin/rm -f "$CYGWIN_ASM/Cygwin FAQ.lnk"
  9.     fi
  10.     if [ -f "$CYGWIN_ASM/Cygwin User's Guide.lnk" ]; then
  11.         /bin/rm -f "$CYGWIN_ASM/Cygwin User's Guide.lnk"
  12.     fi
  13.     if [ -f "$CYGWIN_ASM/Cygwin User's Guide.lnk" ]; then
  14.         /bin/rm -f "$CYGWIN_ASM/User's Guide (One file).lnk"
  15.     fi
  16.     if [ -f "$CYGWIN_ASM/Cygwin User's Guide.lnk" ]; then
  17.         /bin/rm -f "$CYGWIN_ASM/User's Guide (PDF).lnk"
  18.     fi
  19.     if [ -f "$CYGWIN_ASM/Cygwin API Reference.lnk" ]; then
  20.         /bin/rm -f "$CYGWIN_ASM/Cygwin API Reference.lnk"
  21.     fi
  22. fi    
  23.  
  24.  
  25. CYGWIN_SM="$(cygpath -P)/Cygwin"
  26. if [ -d "$CYGWIN_SM" ]; then
  27.     if [ -f "$CYGWIN_SM/Cygwin FAQ.lnk" ]; then
  28.         /bin/rm -f "$CYGWIN_SM/Cygwin FAQ.lnk"
  29.     fi
  30.     if [ -f "$CYGWIN_SM/Cygwin User's Guide.lnk" ]; then
  31.         /bin/rm -f "$CYGWIN_SM/Cygwin User's Guide.lnk"
  32.     fi
  33.     if [ -f "$CYGWIN_SM/Cygwin API Reference.lnk" ]; then
  34.         /bin/rm -f "$CYGWIN_SM/Cygwin API Reference.lnk"
  35.     fi
  36. fi    
  37.  
  38. # Install info updates
  39. PREFIX=/usr/share
  40. INFODIR=${PREFIX}/info
  41. cd ${INFODIR}
  42. for i in libc.info libm.info; do
  43.   install-info --delete --dir-file=${INFODIR}/dir --info-file=${i}
  44. done
  45.  
  46.