Move bash scripts into the 'script' subdirectory.

This commit is contained in:
casey langen 2020-09-18 23:17:03 -07:00
parent 4ff1a0a464
commit f5b05328be
7 changed files with 10 additions and 5 deletions

View File

@ -3,13 +3,15 @@
VERSION=$1
if [ -z "$VERSION" ]; then
echo "usage: ./archive-macos.sh <version>"
echo "usage: archive-macos.sh <version>"
exit
fi
SCRIPTDIR=`dirname "$0"`
rm -rf bin/
./clean-nix.sh
${SCRIPTDIR}/clean-nix.sh
cmake -DCMAKE_BUILD_TYPE=Release -DLINK_STATICALLY=true -DFFMPEG_ENABLED=false .
make -j7

View File

@ -1,7 +1,9 @@
#!/bin/sh
SCRIPT_DIR=`dirname "$0"`
rm -rf bin
./clean-nix.sh
${SCRIPT_DIR}/clean-nix.sh
cmake -DGENERATE_DEB=1 -DDEB_ARCHITECTURE=armhf -DDEB_PLATFORM=rpi -DDEB_DISTRO=buster -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
make -j2
cpack

2
archive-win.sh → script/archive-win.sh Normal file → Executable file
View File

@ -3,7 +3,7 @@
VERSION=$1
if [ -z "$VERSION" ]; then
echo "usage: ./archive-win.sh <version>"
echo "usage: archive-win.sh <version>"
exit
fi

View File

@ -3,3 +3,4 @@ make clean 2> /dev/null
rm -rf bin
find . -name CMakeCache.txt -delete
find . -name CMakeFiles -type d -exec rm -rf "{}" \; 2> /dev/null
rm -f Makefile

View File

@ -5,7 +5,7 @@ MINOR=$2
PATCH=$3
if [ -z "$MAJOR" ] || [ -z "$MINOR" ] || [ -z "$PATCH" ]; then
echo "usage: ./update-version.sh <major> <minor> <patch>"
echo "usage: update-version.sh <major> <minor> <patch>"
exit
fi