File: package.sh

package info (click to toggle)
smstools 3.1.21-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,500 kB
  • sloc: ansic: 18,624; sh: 1,196; php: 115; makefile: 42; awk: 17
file content (9 lines) | stat: -rwxr-xr-x 320 bytes parent folder | download | duplicates (6)
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"