File: create-tedia2sql-tarfile.sh

package info (click to toggle)
tedia2sql 1.2.12-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 384 kB
  • ctags: 553
  • sloc: perl: 2,196; sql: 1,683; makefile: 31; sh: 24
file content (21 lines) | stat: -rwxr-xr-x 652 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

presentDir=`pwd`
cd ..

# disallow CVS entries and PNGs from getting into the tarball
# STDERR has scary-looking but nonfatal errors
find tedia2sql -name 'CVS' -exec chmod 000 \{\} \; 2>/dev/null
find tedia2sql -name 'sampleImages' -exec chmod 000 \{\} \; 2>/dev/null

# make the tarball
# there will be many scary-looking errors, but they're non-fatal
tar -zcvf tedia2sql-xyy.tar.gz tedia2sql 2>/dev/null

# re-enable the file permissions
# STDERR has scary-looking but nonfatal errors
find tedia2sql -name 'sampleImages' -exec chmod 755 \{\} \; 2>/dev/null
find tedia2sql -name 'CVS' -exec chmod 755 \{\} \; 2>/dev/null

cd $presentDir