Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

createDistribution 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #!/usr/bin/bash
  2. #
  3. # This scripts copies the files for a distribution to a zipfile.
  4. #
  5. # Usage: createDistribution VERSION
  6. #
  7. # where VERSION is the version of the distribution.
  8. #
  9. # The files are copied to a new directory named SNFMultiSDK_Windows,
  10. # which is zipped to create the zipfile.
  11. #
  12. ############################################################################
  13. # Name of the directory.
  14. DirName=SNFMultiSDK_Windows
  15. # Get the version.
  16. if [ "$#" -ne 1 ]
  17. then
  18. echo Usage: $0 VERSION
  19. echo where VERSION is the version of the distribution to create
  20. exit -1
  21. fi
  22. VERSION=$1
  23. ZipFile="$DirName"_$VERSION.zip
  24. # Create the directory.
  25. rm -rf $DirName
  26. cp --archive SNFMultiSDK_Windows_Base $DirName
  27. for dir in 32bitDll 64bitDLL CPPSample include VS2019CPPSample VS2019CSSample VS2019VBSample
  28. do
  29. mkdir $DirName/$dir
  30. done
  31. # Copy 32-bit DLL files
  32. for file in IMPORTANT.txt libgcc_s_sjlj-1.dll libstdc++-6.dll libwinpthread-1.dll snfmulti.def snfmulti.dll vs2019_snfmulti.exp vs2019_snfmulti.lib
  33. do
  34. cp 32bitDLL/$file $DirName/32bitDLL
  35. done
  36. # Copy 64-bit DLL files
  37. for file in IMPORTANT.txt libgcc_s_seh-1.dll libstdc++-6.dll libwinpthread-1.dll snfmulti.def snfmulti.dll vs2019_snfmulti.exp vs2019_snfmulti.lib
  38. do
  39. cp 64bitDLL/$file $DirName/64bitDLL
  40. done
  41. # Copy CPP sample files.
  42. for file in main.cpp main.cpp.html README.txt
  43. do
  44. cp CPPSample/$file $DirName/CPPSample
  45. done
  46. for file in README VS2019CPPSample.sln VS2019CPPSample.vcxproj VS2019CPPSample.vcxproj.filters VS2019CPPSample.vcxproj.user
  47. do
  48. cp VS2019CPPSample/$file $DirName/VS2019CPPSample
  49. done
  50. # Copy C# sample files.
  51. for file in main.cs README VS2019CSSample.csproj VS2019CSSample.csproj.user VS2019CSSample.sln
  52. do
  53. cp VS2019CSSample/$file $DirName/VS2019CSSample
  54. done
  55. # Copy VB sample files.
  56. for file in main.vb README VS2019VBSample.sln VS2019VBSample.vbproj VS2019VBSample.vbproj.user
  57. do
  58. cp VS2019VBSample/$file $DirName/VS2019VBSample
  59. done
  60. # Copy include file.
  61. cp include/snfmultidll.h include/snfmultidll.h.html $DirName/include
  62. # Create the zipfile.
  63. rm -f $ZipFile
  64. 7z a -tzip $ZipFile $DirName -r
  65. echo Created zipfile $ZipFile