File: deb.sh

package info (click to toggle)
fatcat 1.1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 924 kB
  • sloc: cpp: 2,533; php: 89; sh: 25; xml: 18; makefile: 5
file content (28 lines) | stat: -rwxr-xr-x 543 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
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/