Blame view

createBinDeb.sh 690 Bytes
Jan Szejko authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

BIN_DIR="$1"
LIB_VERSION="$2"
ARCH="$3"
TARGET_DIR="$4"

PKG_NAME="morfeusz2"

TMP_DIR=`mktemp -d`
PKG_DIR="$TMP_DIR"/"$PKG_NAME"_"$LIB_VERSION"
TARGET_BIN_DIR="$PKG_DIR/usr/bin"
mkdir -p "$TARGET_BIN_DIR"
cp "$BIN_DIR/morfeusz_analyzer" "$BIN_DIR/morfeusz_generator" "$TARGET_BIN_DIR"
strip -s "$TARGET_BIN_DIR/morfeusz_analyzer" \
         "$TARGET_BIN_DIR/morfeusz_generator"

DIR="$( cd "$( dirname "$0" )" && pwd )"

"$DIR/createDeb.sh" "$PKG_NAME" \
    "Morphological analyzer for the Polish language." \
    "Morphological analyzer and generator for the Polish Language." \
    "libc6, libmorfeusz2" "morfeusz2-gui" "$LIB_VERSION" "$ARCH" misc "$PKG_DIR" "$TARGET_DIR"