Exclude dev/example Lua scripts from packages
authorRobin Gareus <robin@gareus.org>
Sat, 20 Aug 2016 22:41:49 +0000 (00:41 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 20 Aug 2016 22:41:49 +0000 (00:41 +0200)
tools/linux_packaging/build
tools/osx_packaging/osx_build

index cee48ced28971fa9f861cb96662585cbaa0edab4..7367028355b637de780b6c9d3fc06df3a6e97a5c 100755 (executable)
@@ -394,7 +394,8 @@ done
 # Lua Scripts Files
 # got to be careful with names here
 for x in $BUILD_ROOT/../scripts/*.lua ; do
-         if test "${x:0:1}" = "_"; then
+               BN=$(basename $x)
+         if test "${BN:0:1}" = "_"; then
                        continue;
                fi
     cp "$x" $LuaScripts
index 68bb675626d0f93b947fa23abcaa3ac1f3e6ddfe..e8d52f26a3def609da08f7a10bf07d7b48d75732 100755 (executable)
@@ -401,7 +401,8 @@ done
 # Lua Script Files
 # got to be careful with names here
 for x in $BUILD_ROOT/../scripts/*.lua ; do
-         if test "${x:0:1}" = "_"; then
+               BN=$(basename $x)
+         if test "${BN:0:1}" = "_"; then
                        continue;
                fi
     cp "$x" $LuaScripts