File: package.sh

package info (click to toggle)
smstools 3.1.11-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,596 kB
  • ctags: 820
  • sloc: ansic: 14,175; sh: 1,173; php: 115; makefile: 44; awk: 17
file content (9 lines) | stat: -rwxr-xr-x 320 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
#!/bin/sh
# This script is used by the author to make a tar.gz package

VERSION=`cat src/version.h | tr -d '"' | awk '/smsd_version/ {print $3}'`
PACKAGE=smstools3-$VERSION.tar.gz

cd ..
tar -chzf $PACKAGE --exclude='*~' --exclude='*.bak' --exclude='*.pdf' --exclude='*.tar.gz' smstools3
echo "Package $PACKAGE created"