added vmware-workstation
parent
3ee4566d7c
commit
1fd40d315b
|
|
@ -0,0 +1,53 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# Script name: build-db.sh
|
||||
# Description: Script for rebuilding the database for dtos-core-repo.
|
||||
# GitLab: https://www.gitlab.com/dwt1/dtos-core-repo
|
||||
# Contributors: Derek Taylor
|
||||
|
||||
# Set with the flags "-e", "-u","-o pipefail" cause the script to fail
|
||||
# if certain things happen, which is a good thing. Otherwise, we can
|
||||
# get hidden bugs that are hard to discover.
|
||||
set -euo pipefail
|
||||
|
||||
x86_pkgbuild=$(find ../dtos-pkgbuild/x86_64 -type f -name "*.pkg.tar.zst*")
|
||||
|
||||
for x in ${x86_pkgbuild}
|
||||
do
|
||||
mv "${x}" x86_64/
|
||||
echo "Moving ${x}"
|
||||
done
|
||||
|
||||
echo "###########################"
|
||||
echo "Building the repo database."
|
||||
echo "###########################"
|
||||
|
||||
## Arch: x86_64
|
||||
cd x86_64
|
||||
rm -f dtos-core-repo*
|
||||
|
||||
echo "###################################"
|
||||
echo "Building for architecture 'x86_64'."
|
||||
echo "###################################"
|
||||
|
||||
## repo-add
|
||||
## -s: signs the packages
|
||||
## -n: only add new packages not already in database
|
||||
## -R: remove old package files when updating their entry
|
||||
repo-add -s -n -R dtos-core-repo.db.tar.gz *.pkg.tar.zst
|
||||
|
||||
# Removing the symlinks because GitLab can't handle them.
|
||||
rm dtos-core-repo.db
|
||||
rm dtos-core-repo.db.sig
|
||||
rm dtos-core-repo.files
|
||||
rm dtos-core-repo.files.sig
|
||||
|
||||
# Renaming the tar.gz files without the extension.
|
||||
mv dtos-core-repo.db.tar.gz dtos-core-repo.db
|
||||
mv dtos-core-repo.db.tar.gz.sig dtos-core-repo-db.sig
|
||||
mv dtos-core-repo.files.tar.gz dtos-core-repo.files
|
||||
mv dtos-core-repo.files.tar.gz.sig dtos-core-repo.files.sig
|
||||
|
||||
echo "#######################################"
|
||||
echo "Packages in the repo have been updated!"
|
||||
echo "#######################################"
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# Script name: pushit.sh
|
||||
# Description: Script for pushing changes to dtos-core-repo to GitLab.
|
||||
# GitLab: https://www.gitlab.com/dwt1/dtos-core-repo
|
||||
# Contributors: Derek Taylor
|
||||
|
||||
# Set with the flags "-e", "-u","-o pipefail" cause the script to fail
|
||||
# if certain things happen, which is a good thing. Otherwise, we can
|
||||
# get hidden bugs that are hard to discover.
|
||||
set -euo pipefail
|
||||
|
||||
git status
|
||||
git add -u && echo "Git add updated files in this directory."
|
||||
git add * && echo "Git add all files in this directory."
|
||||
git commit -m "Updating database." && echo "Commit Message: Updating database."
|
||||
git push && echo "Git push completed."
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue