mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-12-22 22:59:27 +00:00
23 lines
450 B
Bash
23 lines
450 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
# Sets up a packaging environment in [/tmp]
|
||
|
|
||
|
# Make sure we're in the [gupax/utils] directory
|
||
|
set -ex
|
||
|
[[ $PWD = */gupax ]]
|
||
|
|
||
|
# Make sure the folder doesn't already exist
|
||
|
GIT_COMMIT=$(cat .git/refs/heads/main)
|
||
|
FOLDER="gupax_${GIT_COMMIT}"
|
||
|
[[ ! -e /tmp/${FOLDER} ]]
|
||
|
|
||
|
mkdir /tmp/${FOLDER}
|
||
|
cp -r utils/* /tmp/${FOLDER}/
|
||
|
cp CHANGELOG.md /tmp/${FOLDER}/skel/
|
||
|
|
||
|
set +ex
|
||
|
|
||
|
echo
|
||
|
ls --color=always /tmp/${FOLDER}
|
||
|
echo "/tmp/${FOLDER} ... OK"
|