0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-12-22 11:03:48 +01:00

Print skipped files when adding copyright notices.

Remove old script.
This commit is contained in:
Wouter R 2016-01-08 23:24:03 +01:00
parent 3a3abb9c55
commit 37f833aec1
2 changed files with 2 additions and 34 deletions

View File

@ -254,6 +254,8 @@ local function main()
else
print("error: file '" .. f .. "' has uncommitted changes in git, refusing to process")
end
elseif processType == false then
print("Skipping excluded file '" .. f .. "'")
end
end
end

View File

@ -1,34 +0,0 @@
#!/bin/sh
BASE_NAME=d3d-wifibox-backup
SRC_PATHS="/etc /root /www/ /usr/share/lua"
TEMP_DIR=/tmp
TGT_FILE=$BASE_NAME.tar.gz
if [ -e /www-external ]; then
echo "ERROR: switch back /www-regular to /www before running this script"
exit 1
fi
cd $TEMP_DIR
if [ $? != 0 ]; then
echo "ERROR: could not cd to temporary directory ($TEMP_DIR)"
exit 2
fi
TGT_DIR=$TEMP_DIR/$BASE_NAME
rm -rf $TGT_DIR
mkdir -p $TGT_DIR
for path in $SRC_PATHS; do
echo "copying $path -> $TGT_DIR..."
cp -a $path $TGT_DIR
done
echo "compressing $TGT_DIR into $BASE_NAME.tar.gz..."
tar czf $BASE_NAME.tar.gz $BASE_NAME
echo "removing staging dir..."
rm -rf $TGT_DIR
echo "done."