Skip to content

Commit

Permalink
fixed dat directory level
Browse files Browse the repository at this point in the history
  • Loading branch information
burner1024 committed Jul 12, 2019
1 parent fba2718 commit 912748b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions extra/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ if [ -n "$TRAVIS_TAG" ]; then # tag found: releasing
version="$TRAVIS_TAG"

# data
dat="$mods_dir/$mod_name.dat"
dat="$mod_name.dat"
mkdir -p "$mods_dir"
chmod 0444 data/proto/*/*

cd data
# I don't know how to pack recursively
for f in $(find data -type f | sed 's|\/|\\|g' | sort); do # replace slashes with backslashes
for f in $(find . -type f | sed -e 's|^\.\/||' -e 's|\/|\\|g' | sort); do # replace slashes with backslashes
WINEARCH=win32 WINEDEBUG=-all wine "$bin_dir/dat2.exe" a $dat "$f"
done
cd ..
mv "data/$dat" "$mods_dir/"

# sfall
sfall_url="https://sourceforge.net/projects/sfall/files/sfall/sfall_$sfall_version.7z/download"
Expand Down

0 comments on commit 912748b

Please sign in to comment.