home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / unzip532.zip / tandem / rename.unix < prev    next >
Text File  |  1997-09-01  |  2KB  |  61 lines

  1. #!/bin/sh
  2. # Info-ZIP script tandem/rename.unix for UnZip 5.32 and later
  3. #
  4. # This script should be run on a Unix system in order to rename appropriately
  5. # the source files required for the Tandem port.  Note that the source files
  6. # should have DOS-style line-endings (CR/LF), which can be accomplished by
  7. # archiving them with "zip -l" and unarchiving with "unzip -b", or by ftp'ing
  8. # them to the Tandem system in ASCII mode.
  9.  
  10. MV="/bin/mv"
  11. #MV="/bin/cp -p"
  12.  
  13. if [ -d tandem ]; then
  14.     cd tandem
  15. fi
  16.  
  17. if [ -f tandemc ]; then
  18.     echo "error:  tandemc already exists"
  19.     exit 1
  20. fi
  21.  
  22. if [ ! -f tandem.c ]; then
  23.     echo "error:  can't find tandem.c"
  24.     echo "  (either files are already renamed or else we're not in UnZip directory)"
  25.     exit 2
  26. fi
  27.  
  28. echo "Renaming source files for Tandem (command = $MV) ..."
  29. $MV tandem.c tandemc
  30. $MV tandem.h tandemh
  31.  
  32. $MV ../consts.h constsh
  33. $MV ../crc32.c crc32c
  34. $MV ../crctab.c crctabc
  35. $MV ../crypt.c cryptc
  36. $MV ../crypt.h crypth
  37. $MV ../ebcdic.h ebcdich
  38. $MV ../envargs.c envargsc
  39. $MV ../explode.c explodec
  40. $MV ../extract.c extractc
  41. $MV ../fileio.c fileioc
  42. $MV ../globals.c globalsc
  43. $MV ../globals.h globalsh
  44. $MV ../inflate.c inflatec
  45. $MV ../inflate.h inflateh
  46. $MV ../list.c listc
  47. $MV ../match.c matchc
  48. $MV ../process.c processc
  49. $MV ../tables.h tablesh
  50. $MV ../ttyio.c ttyioc
  51. $MV ../ttyio.h ttyioh
  52. $MV ../unshrink.c unshrinc
  53. $MV ../unzip.c unzipc
  54. $MV ../unzip.h unziph
  55. $MV ../unzpriv.h unzprivh
  56. $MV ../version.h versionh
  57. $MV ../zip.h ziph
  58. $MV ../zipinfo.c zipinfoc
  59.  
  60. echo "Done."
  61.