File: deb.sh

package info (click to toggle)
fatcat 1.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie-kfreebsd, sid, stretch
  • size: 868 kB
  • ctags: 264
  • sloc: cpp: 2,102; php: 89; sh: 19; xml: 18; makefile: 5
file content (28 lines) | stat: -rwxr-xr-x 543 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
27
28
#!/bin/bash

REPOSITORY="$HOME/fatcat/"
NAME=fatcat

if [ $# -lt 1 ]; then
 echo "Usage: ./deb.sh version"
 exit
fi

WORKDIR=`pwd`
VERSION=$1
rm -rf $WORKDIR/$NAME*

# Create the archive and the directory
UPSTREAM=$WORKDIR/fatcat_$VERSION.orig.tar.gz
cd $REPOSITORY &&
git archive --format=tar.gz debian_$VERSION > $UPSTREAM &&
cd $WORKDIR &&
mkdir $NAME &&
cd $NAME &&
tar zxvf $UPSTREAM &&

# Run the debian packaging
dpkg-buildpackage  && # -uc && # -ai386 &&

cd $WORKDIR &&
scp fatcat_$VERSION* root@gregwar.com:/home/www/gregwar/fatcat/