-
Notifications
You must be signed in to change notification settings - Fork 16
/
make-distfiles.sh
executable file
·45 lines (38 loc) · 1.04 KB
/
make-distfiles.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
#
# This script creates a folder with PDT python scripts which are ready to be
# copied into the official Blender addons/ git repository and committed.
#
# This file is licensed under the GNU General Public Licence v2
#
# Copyright (c) 2019 Rune Morling (ermo)
#
DIRNAME="precision_drawing_tools/"
if [[ ! -f pdt_design.py ]]; then
echo "** $0 needs to be run from within the Precision-Drawing-Tools git clone."
echo ""
echo "-- Exiting."
echo ""
exit 1
fi
if [[ -d "${DIRNAME}" ]]; then
echo ""
echo "** ${DIRNAME} already exists; deleting it ..."
rm -rf "${DIRNAME}"
fi
echo ""
echo "-- Creating folder ./${DIRNAME} ..."
mkdir -pv "./${DIRNAME}"
echo ""
echo "-- Copying .py script files to ${DIRNAME} ..."
for PYFILE in *.py
do
cp -v "${PYFILE}" "${DIRNAME}"
done
echo ""
echo "-- Contents of ${DIRNAME} :"
ls -lA "${DIRNAME}"
echo ""
echo "Now copy ${DIRNAME} into the clone of the official Blender addons/ git repo"
echo "and git add & git commit the new versions of the PDT files."
echo ""