diff options
author | Hisham <hisham@gobolinux.org> | 2016-11-14 15:18:07 -0200 |
---|---|---|
committer | Hisham <hisham@gobolinux.org> | 2016-11-14 15:18:07 -0200 |
commit | 5b8651369fae1d302442e7c60d07b109e1bb2339 (patch) | |
tree | 70f6ee37b50ef4703e6d7d09f4c4ae73c54e2c58 | |
parent | 1e7800c2993cf828f448a534106aa4046a48a591 (diff) | |
download | luarocks-5b8651369fae1d302442e7c60d07b109e1bb2339.tar.gz luarocks-5b8651369fae1d302442e7c60d07b109e1bb2339.tar.bz2 luarocks-5b8651369fae1d302442e7c60d07b109e1bb2339.zip |
Remove outdated file from list, and automate check for the future
-rw-r--r-- | Makefile.setup.inc | 2 | ||||
-rwxr-xr-x | makedist | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/Makefile.setup.inc b/Makefile.setup.inc index 0a34429c..0167b55c 100644 --- a/Makefile.setup.inc +++ b/Makefile.setup.inc | |||
@@ -14,7 +14,7 @@ cmd/make.lua cmd/list.lua cmd/show.lua cmd/path.lua cmd/new_version.lua \ | |||
14 | cmd/pack.lua cmd/download.lua cmd/doc.lua cmd/remove.lua tools/patch.lua \ | 14 | cmd/pack.lua cmd/download.lua cmd/doc.lua cmd/remove.lua tools/patch.lua \ |
15 | tools/zip.lua tools/tar.lua manif/writer.lua build/cmake.lua build/make.lua \ | 15 | tools/zip.lua tools/tar.lua manif/writer.lua build/cmake.lua build/make.lua \ |
16 | build/command.lua build/builtin.lua fetch.lua path.lua util.lua deps.lua \ | 16 | build/command.lua build/builtin.lua fetch.lua path.lua util.lua deps.lua \ |
17 | pack.lua download.lua core/dir.lua core/path.lua core/util.lua core/deps.lua \ | 17 | pack.lua download.lua core/dir.lua core/path.lua core/util.lua \ |
18 | core/cfg.lua core/type_check.lua core/persist.lua core/manif.lua \ | 18 | core/cfg.lua core/type_check.lua core/persist.lua core/manif.lua \ |
19 | type_check.lua persist.lua require.lua manif.lua admin/cache.lua \ | 19 | type_check.lua persist.lua require.lua manif.lua admin/cache.lua \ |
20 | admin/cmd/make_manifest.lua admin/cmd/add.lua admin/cmd/remove.lua \ | 20 | admin/cmd/make_manifest.lua admin/cmd/add.lua admin/cmd/remove.lua \ |
@@ -80,6 +80,21 @@ then | |||
80 | exit 1 | 80 | exit 1 |
81 | fi | 81 | fi |
82 | 82 | ||
83 | cat Makefile.setup.inc | tr ' \\' '\n\n' | grep 'lua$' | while read i | ||
84 | do | ||
85 | if [ ! -e src/luarocks/$i ] | ||
86 | then | ||
87 | echo "Ref in Makefile.setup.inc for file that no longer exists: $i" | ||
88 | touch "outdated_ref" | ||
89 | exit 1 | ||
90 | fi | ||
91 | done | ||
92 | if [ -e "outdated_ref" ] | ||
93 | then | ||
94 | rm -f "outdated_ref" | ||
95 | exit 1 | ||
96 | fi | ||
97 | |||
83 | rm -rf "release-unix" "release-windows" "$out.tar.gz" "$out-win32.zip" | 98 | rm -rf "release-unix" "release-windows" "$out.tar.gz" "$out-win32.zip" |
84 | 99 | ||
85 | mkdir "release-unix" | 100 | mkdir "release-unix" |