File: package.sub

package info (click to toggle)
smstools 1.14.8-1sarge0
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 740 kB
  • ctags: 247
  • sloc: ansic: 3,715; sh: 227; makefile: 75
file content (26 lines) | stat: -rwxr-xr-x 1,541 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
# This script is used by the author to make a tar.gz package and update
# some local directories. 

VERSION=`grep package_version src/version.h | cut -f2`

chmod -R a+rX *
cd ..
tar -chzf smstools/doc/html/packages/smstools-$VERSION.tar.gz --exclude=smstools/doc/html/packages smstools
cd smstools
echo "Package for version $VERSION created"

  cp doc/html/packages/smstools-$VERSION.tar.gz doc/html/packages/smstools.tar.gz
  rm "../../buecher/SMS Anwendungen/CD/Windows/SMS Server Tools/smstools"*.tar.gz
  cp "doc/html/packages/smstools-$VERSION.tar.gz" "../../buecher/SMS Anwendungen/CD/Windows/SMS Server Tools"
  rm "../../buecher/SMS Anwendungen/CD/Linux/Source/smstools"*.tar.gz
  cp "doc/html/packages/smstools-$VERSION.tar.gz" "../../buecher/SMS Anwendungen/CD/Linux/Source"
  rm "../../buecher/SMS Anwendungen/CD/Solaris6/Source/smstools"*.tar.gz
  cp "doc/html/packages/smstools-$VERSION.tar.gz" "../../buecher/SMS Anwendungen/CD/Solaris6/Source"
  rm "../../buecher/SMS Anwendungen/CD/Solaris7/Source/smstools"*.tar.gz
  cp "doc/html/packages/smstools-$VERSION.tar.gz" "../../buecher/SMS Anwendungen/CD/Solaris7/Source"
  rm "../../buecher/SMS Anwendungen/CD/Solaris8/Source/smstools"*.tar.gz
  cp "doc/html/packages/smstools-$VERSION.tar.gz" "../../buecher/SMS Anwendungen/CD/Solaris8/Source"
  rm "../../buecher/SMS Anwendungen/CD/Solaris9/Source/smstools"*.tar.gz
  cp "doc/html/packages/smstools-$VERSION.tar.gz" "../../buecher/SMS Anwendungen/CD/Solaris9/Source"
  echo "Local files for version $VERSION updated"