Skip to content

Commit

Permalink
fix: Remove ".." from the dist archive
Browse files Browse the repository at this point in the history
  • Loading branch information
tomghuang committed Jan 16, 2021
1 parent aac9cff commit 7402e6e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions tools/build
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 4 additions & 2 deletions tools/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 7402e6e

Please sign in to comment.