Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/src/main/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ LOCAL_SRC_FILES := httrack/src/htscore.c httrack/src/htsparse.c \
httrack/src/htscache_selftest.c httrack/src/htsdns_selftest.c \
httrack/src/htscodec.c httrack/src/htsproxy.c \
httrack/src/htsurlport.c httrack/src/htswarc.c \
httrack/src/htsescape.c \
httrack/src/htsnet.c httrack/src/htsrandom.c \
httrack/src/htssitemap.c httrack/src/htssinglefile.c \
httrack/src/htschanges.c httrack/src/htscmdline.c \
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/jni/httrack
Submodule httrack updated 249 files
10 changes: 2 additions & 8 deletions tools/build_strings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,19 @@ if test $(head -5 $i | tail -1 | tr -d '\r') != "LANGUAGE_ISO"; then
echo "bad file $i: LANGUAGE_ISO expected"
exit 1
fi
if test $(head -9 $i | tail -1 | tr -d '\r') != "LANGUAGE_CHARSET"; then
echo "bad file $i: LANGUAGE_CHARSET expected"
exit 1
fi
iso=$(head -6 $i | tail -1 | tr -d '\r' | tr '_' '-' | sed -e 's/-/-r/')
cp=$(head -10 $i | tail -1 | tr -d '\r')
#if test "$iso" = "en"; then
#echo "skipped"
#continue;
#fi
dest=$2/values-${iso}
mkdir -p $dest

# read strings, converted to UTF-8, stripping CR,
# read strings, stripping CR,
# removing : at the end
# replacing real & by & and stripping the other ones
# and replacing WinHTTrack by HTTrack
cat "$i" | \
iconv -f "$cp" -t "utf-8" \
cat "$i" \
| tr -d '\r' \
| sed -e 's/\\r//g' \
| sed -e 's/:$//' -e 's/\* //g' -e 's/\.\.\.$//g' -e 's/\([[:space:]]\)[[:space:]]*/\1/g' -e 's/[[:space:]]*$//' \
Expand Down
Loading