You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
475 B

  1. #!/bin/sh
  2. export LC_ALL=C.UTF-8
  3. export LANG=C.UTF-8
  4. if [ -n "$1" ]
  5. then
  6. DIR=$1/
  7. fi
  8. for a in $(find ${DIR}html -type f | grep -v \~ | sort)
  9. do
  10. c=$(echo $a | sed s:${DIR}html/:: | tr "/.-" "___")
  11. echo "INCBIN(${c}, \"$a\");"
  12. done
  13. echo "map<string,string> g_urlmap={"
  14. for a in $(find ${DIR}html -type f | grep -v \~ | sort)
  15. do
  16. b=$(echo $a | sed s:${DIR}html/::g)
  17. c=$(echo $b | tr "/.-" "___")
  18. echo "{\"$b\", string((const char*)g${c}Data, g${c}Size)},"
  19. done
  20. echo "};"