Advertisement
Guest User

Untitled

a guest
Jul 29th, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. --- get_fli4l_tar.bat 2012-07-28 09:10:32 +0000
  2. +++ get_fli4l_tar.bat 2012-07-28 15:45:52 +0000
  3. @@ -18,6 +18,11 @@
  4. set bz2packs=
  5. rem Note: use quotes for subdirectories! set bz2packs="kernels/kernel-3.8.21"
  6.  
  7. +rem list of zip-packages (packed with zip)
  8. +
  9. +set zippacks=
  10. +rem Note: use quotes for subdirectories! set zippacks="../opt_data3/9999-opt_demo_3.7.0-0.99"
  11. +
  12. rem no changes after this line needed
  13. rem #################################
  14.  
  15. @@ -60,6 +65,9 @@
  16. if not "%bz2packs%"=="" echo Download bz2-packages.
  17. for %%i in (%bz2packs%) do wget -N ftp://%url%/%%i.tar.bz2
  18.  
  19. +if not "%zippacks%"=="" echo Download zip-packages.
  20. +for %%i in (%zippacks%) do wget -N ftp://%url%/%%i.zip
  21. +
  22. cd ..
  23.  
  24. echo Extract base in directory: |rmeol.exe >tmp.txt
  25. @@ -88,6 +96,15 @@
  26. for %%i in (packages\*.bz2) do tar --wildcards -C %basedir% -xjf %%i
  27.  
  28. :nobz2
  29. +if "%zippacks%"=="" goto nozip
  30. +echo Extract zip-packages in directory: |rmeol.exe >tmp.txt
  31. +cd|rmeol.exe >>tmp.txt
  32. +echo \%basedir% >>tmp.txt
  33. +type tmp.txt
  34. +
  35. +for %%i in (packages\*.zip) do unzip -o -q -d %basedir% %%i
  36. +
  37. +:nozip
  38. del tmp.txt
  39. echo set TARBDIR=TARB-fli4l-|rmeol.exe > tarbdir.bat
  40. type %basedir%\version.txt|rmeol.exe >>tarbdir.bat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement