2020-01-06 21:14:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Enter package directory
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
pushd $SCRIPT_DIR
|
|
|
|
|
|
|
|
name="tcg_rim_tool"
|
|
|
|
|
2020-06-17 12:00:08 +00:00
|
|
|
tar -cf $name.tar build.gradle gradle* src/ docs/ rim_fields.json keystore.jks scripts/
|
2020-06-19 11:25:23 +00:00
|
|
|
gzip -f $name.tar
|
2020-01-06 21:14:04 +00:00
|
|
|
if [ -d rpmbuild ]; then
|
|
|
|
rm -rf rpmbuild
|
|
|
|
fi
|
|
|
|
mkdir -p rpmbuild/BUILD rpmbuild/BUILDROOT rpmbuild/SOURCES rpmbuild/RPMS rpmbuild/SPECS rpmbuild/SRPMS
|
|
|
|
rpmbuild -bb $name.spec --define "_sourcedir $PWD" --define "_topdir $PWD/rpmbuild"
|
|
|
|
|
|
|
|
popd
|