LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File generate.sh of Package mingw64-lua51-wxlua (Project home:doc_bacardi)

#! /bin/bash

tar --create --file build.tar.gz --gzip build

PACKAGE=mingw64-lua51-wxlua
VERSION=2.8.12.3
RELEASE=3
DEB_FILENAME=${PACKAGE}_${VERSION}-${RELEASE}.debian.tar.gz
ORG_FILENAME=${PACKAGE}_${VERSION}.orig.tar.gz

tar --create --directory build --file ${DEB_FILENAME} --gzip debian
tar --create --directory build --file ${ORG_FILENAME} --gzip compile.sh install.sh test.sh

DEB_MD5=($(md5sum ${DEB_FILENAME}))
DEB_SIZE=$(ls -l ${DEB_FILENAME} | awk '{ print $5 }')
ORG_MD5=($(md5sum ${ORG_FILENAME}))
ORG_SIZE=$(ls -l ${ORG_FILENAME} | awk '{ print $5 }')

sed -e "s/PACKAGE/${PACKAGE}/g" -e "s/VERSION/${VERSION}/g" -e "s/RELEASE/${RELEASE}/g" -e "s/DEB_FILENAME/${DEB_FILENAME}/g" -e "s/ORG_FILENAME/${ORG_FILENAME}/g" -e "s/DEB_MD5/${DEB_MD5}/g" -e "s/ORG_MD5/${ORG_MD5}/g" -e "s/DEB_SIZE/${DEB_SIZE}/g" -e "s/ORG_SIZE/${ORG_SIZE}/g" <build/${PACKAGE}.dsc.in >${PACKAGE}_${VERSION}-${RELEASE}.dsc