mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-22 14:22:29 +00:00
18 lines
487 B
Bash
Executable File
18 lines
487 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Enter package directory
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
pushd $SCRIPT_DIR
|
|
|
|
name="tcg_rim_tool"
|
|
|
|
tar -cf $name.tar build.gradle gradle* src/ docs/ rim_fields.json keystore.jks scripts/
|
|
gzip -f $name.tar
|
|
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
|