diff --git a/add_empty_folders.sh b/add_empty_folders.sh new file mode 100644 index 0000000..5059ba2 --- /dev/null +++ b/add_empty_folders.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# 保存为 add_empty_folders.sh + +echo "正在查找并处理空文件夹..." + +# 查找所有空文件夹并创建 .gitkeep +find . -type d -empty | while read dir; do + if [ ! -f "$dir/.gitkeep" ]; then + touch "$dir/.gitkeep" + echo "✅ 已创建: $dir/.gitkeep" + fi +done + +echo "处理完成!" diff --git a/rpmbuild/BUILD/.gitkeep b/rpmbuild/BUILD/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/rpmbuild/BUILDROOT/.gitkeep b/rpmbuild/BUILDROOT/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/conf/Catalina/localhost/.gitkeep b/rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/conf/Catalina/localhost/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/logs/.gitkeep b/rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/logs/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/temp/.gitkeep b/rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/temp/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/webapps/noVNC-master/include/web-socket-js-project/.gitkeep b/rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/webapps/noVNC-master/include/web-socket-js-project/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/work/.gitkeep b/rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/work/.gitkeep new file mode 100644 index 0000000..e69de29