Skip to content

Instantly share code, notes, and snippets.

View belen-albeza's full-sized avatar

Belén Albeza belen-albeza

View GitHub Profile
@belen-albeza
belen-albeza / appcache.sh
Created September 19, 2012 09:23 — forked from arcturus/appcache.sh
Simple bash script to generate .appcache file from your web app
#!/bin/bash
echo "CACHE MANIFEST"
echo "#Generated: $(date)"
echo "CACHE:"
echo "/"
find . \( ! -regex '.*/\..*' \) -type f |
while read i; do
if [ "${i:2}" != '$("basename $0")' ]; then
if [[ $i == \./* ]]; then