source: misc/sqlite2to3.sh @ 37

Revision 37, 303 bytes checked in by sgk, 12 years ago (diff)

fix

  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3if [ $# = 0 ]; then
4  echo "Usage: $0 sqlite2-db-file..." 1>&2
5  exit 1
6fi
7
8for fname in $*; do
9  echo "Processing: $fname" 1>&2
10  old="$fname"2
11  mv "$fname" "$old"
12  sqlite "$old" .dump | sqlite3 "$fname"
13  eval "`stat --format='chmod %a \"$fname\"; chown %u:%g \"$fname\"' \"$old\"`"
14done
Note: See TracBrowser for help on using the repository browser.