mirror of
https://github.com/UnRAIDES/unRAID-NerdTools
synced 2025-04-05 15:56:03 +00:00
21 lines
504 B
Bash
Executable File
21 lines
504 B
Bash
Executable File
#!/bin/bash
|
|
DIR="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
|
|
tmpdir=/tmp/tmp.$(( $RANDOM * 19318203981230 + 40 ))
|
|
plugin=$(basename ${DIR})
|
|
archive="$(dirname $(dirname ${DIR}))/archive"
|
|
version=$(date +"%Y.%m.%d")$1
|
|
|
|
mkdir -p $tmpdir
|
|
|
|
echo $tmpdir
|
|
echo $archive
|
|
echo "version $version"
|
|
echo "version $1"
|
|
|
|
cp --parents -f $(find . -type f ! \( -iname "pkg_build.sh" -o -iname "sftp-config.json" \) ) $tmpdir/
|
|
cd $tmpdir
|
|
makepkg -l y -c y ${archive}/${plugin}-${version}-x86_64-1.txz
|
|
rm -rf $tmpdir
|
|
|
|
|