summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-10-21 23:51:55 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-10-21 23:51:55 -0400
commit3f1441073d64408c1f937be226369ab6b4072b39 (patch)
treedf7c1ba9fe11b392632092a3837eb516cd3fff68 /tools
parent16c51ffe4f609c238b163e08089fe7e381fec20a (diff)
more
Diffstat (limited to 'tools')
-rwxr-xr-xtools/notsd-move19
1 files changed, 14 insertions, 5 deletions
diff --git a/tools/notsd-move b/tools/notsd-move
index 3b29039883..a861d98c99 100755
--- a/tools/notsd-move
+++ b/tools/notsd-move
@@ -14,7 +14,7 @@ split_lib() {
local d=$1
local t=("$d"/test-*)
- if [[ -f ${t[0]} ]]; then
+ if [[ -e ${t[0]} ]]; then
mkdir "$d/test"
mv "$d"/test-* -t "$d/test"
fi
@@ -124,14 +124,15 @@ move_files() (
mv -T src/lib{systemd-shared,core}/linux
- mkdir src/libfirewall
- mv -T src/lib{systemd-shared,firewall}/firewall-util.c
- mv -T src/lib{systemd-shared,firewall}/firewall-util.h
+ mkdir src/libsystemd-firewall
+ mv -T src/libsystemd-{shared,firewall}/firewall-util.c
+ mv -T src/libsystemd-{shared,firewall}/firewall-util.h
split_lib src/libcore
split_lib src/libsystemd-basic
split_lib src/libsystemd-shared
split_lib src/libsystemd-network
+ split_lib src/libsystemd-firewall
mv -t src/libcore/src \
src/libcore/linux \
@@ -228,6 +229,7 @@ move_files() (
src/journal/sd-journal.c
rmdir src/journal
split_lib src/libjournal-core
+ mv -T src/libjournal-core/{,src/}journald-gperf.gperf
# src/network => src/...
mkdir src/systemd-networkd-wait-online
@@ -661,6 +663,11 @@ move_files() (
rm src/grp-udev/rules/.gitignore
rmdir src/grp-udev/rules
+ mv -t src/grp-journal/systemd-journald \
+ src/grp-journal/catalog/.gitignore \
+ src/grp-journal/catalog/*
+ rmdir src/grp-journal/catalog
+
mv -t src/systemd-timesyncd system-preset/??-timesyncd.preset
for file in system-preset/??-*.preset; do
base="${file##*/??-}"
@@ -764,9 +771,11 @@ fixup_makefile() {
-e 's|--version-script=.*/([^/]+)\.sym|--version-script=$(srcdir)/\1.sym|g' \
-e '#### Rename helpers ################' \
-e 's|libbasic_la|libsystemd_basic_la|g' \
- -e 's|libshared_la|libsystemd_shared_la|g' \
-e 's|libbasic|libsystemd-basic|g' \
-e 's|libshared|libsystemd-shared|g' \
+ -e 's|libshared_la|libsystemd_shared_la|g' \
+ -e 's|libfirewall|libsystemd-firewall|g' \
+ -e 's|libfirewall_la|libsystemd_firewall_la|g' \
-e 's|libsystemd-basic-dns|libbasic-dns|g'
}