Browse Source

fix: Remove ".." from the dist archive

pull/65/head v3.2.0.7402e6e
Tom G. Huang 4 years ago
parent
commit
7402e6ead5
  1. 6
      tools/build
  2. 6
      tools/build.bat

6
tools/build

@ -85,13 +85,15 @@ elif [ "$1" = "cleanall" ]; then
elif [ "$1" = "tar" ]; then
dist
ver=$(get_ver)
tar -cvzf argtable-$ver-amalgamation.tar.gz ../dist
tar -cvzf argtable-$ver-amalgamation.tar.gz -C .. dist
exit 0
elif [ "$1" = "zip" ]; then
dist
ver=$(get_ver)
find ../dist -name '*' | xargs unix2dos
zip -r argtable-$ver-amalgamation.zip ../dist
pushd ..
zip -r tools/argtable-$ver-amalgamation.zip dist
popd
exit 0
elif [ "$1" = "help" ]; then
echo "Argtable Amalgamation Package Build Script"

6
tools/build.bat

@ -118,14 +118,16 @@ goto :EOF
call:dist
call:get_ver
for /R ..\dist %%G in (*) do dos2unix "%%G"
tar -cvzf argtable-%ARGTABLE_VER%-amalgamation.tar.gz ..\dist
tar -cvzf argtable-%ARGTABLE_VER%-amalgamation.tar.gz -C .. dist
goto :EOF
:build_zip
call:dist
call:get_ver
zip -r argtable-%ARGTABLE_VER%-amalgamation.zip ..\dist
pushd ..
zip -r tools\argtable-%ARGTABLE_VER%-amalgamation.zip dist
popd
goto :EOF

Loading…
Cancel
Save