download
上传用户:wstnjxml
上传日期:2014-04-03
资源大小:7248k
文件大小:1k
源码类别:

Windows CE

开发平台:

C/C++

  1. #!/bin/sh
  2. PATCH="patch -p0"
  3. WGET="wget"
  4. TMPDIR="/tmp/tcpmp"
  5. SRCDIR="`pwd`"
  6. mkdir -p "$TMPDIR"; cd "$TMPDIR"
  7. #-------------
  8. # 1. download
  9. #-------------
  10. if test ! -f "26104-610.zip" ; then
  11.   $WGET http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-610.zip || { echo "error downloading 26104-610.zip"; exit; }
  12. fi
  13. if test ! -f "26204-600.zip" ; then
  14.   $WGET http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-600.zip || { echo "error downloading 26204-600.zip"; exit; }
  15. fi
  16. #------------------------
  17. # 2. unpack and patching
  18. #------------------------
  19. unzip "26104-610.zip"
  20. unzip "26104-610_ANSI_C_source_code.zip"
  21. mkdir -p "$SRCDIR/26104"
  22. mv c-code/* $SRCDIR/26104
  23. unzip "26204-600.zip"
  24. unzip "26204-600_ANSI-C_source_code.zip"
  25. mkdir -p "$SRCDIR/26204"
  26. mv c-code/* $SRCDIR/26204
  27. cd "$SRCDIR"
  28. dos2unix 26104/interf_dec.c 26104/interf_rom.h 26104/typedef.h
  29. dos2unix 26204/dec_if.c 26204/if_rom.c 26204/typedef.h
  30. cat "26104.diff" | dos2unix | $PATCH || { echo "error patching 26104"; exit; }
  31. cat "26204.diff" | dos2unix | $PATCH || { echo "error patching 26204"; exit; }
  32. rm -Rf "$TMPDIR"