Skip to content

Instantly share code, notes, and snippets.

@arcturus
Created April 13, 2012 07:48
Show Gist options
  • Save arcturus/2374940 to your computer and use it in GitHub Desktop.
Save arcturus/2374940 to your computer and use it in GitHub Desktop.
Simple bash script to generate .appcache file from your web app
#!/bin/bash
echo "CACHE MANIFEST"
echo "#Generated: $(date)"
echo "CACHE:"
echo "/"
find . -type f |
while read i; do
if [ "${i:2}" != "$(basename $0)" ]; then
if [[ $i == \./* ]]; then
echo "${i:2}"
else
echo $i
fi
fi
done
echo "NETWORK:"
echo "*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment