Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Arseniy Alekseyev <[email protected]>
  • Loading branch information
aalekseyev committed Dec 2, 2021
1 parent e5e23eb commit 2df8f63
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 90 deletions.
1 change: 0 additions & 1 deletion dune
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
(install (section bin) (files coretop corebuild))
10 changes: 9 additions & 1 deletion gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ renaming_lib() {
lib_name=$1
redirecting_lib_name=core_unix_$1
module_name="${lib_name^}"

original_public_name=core.$lib_name
case $lib_name in
uuid_unix)
original_public_name=core.uuid
;;
esac

rm -r "$lib_name"
mkdir "$lib_name"
mkdir "$lib_name"/src
Expand All @@ -19,7 +27,7 @@ EOF
fi
cat > "$lib_name"/src/dune <<EOF
(library (name $redirecting_lib_name) (public_name $public_name)
(libraries core.$lib_name) (preprocess no_preprocessing))
(libraries $original_public_name) (preprocess no_preprocessing))
EOF
}

Expand Down
2 changes: 1 addition & 1 deletion uuid_unix/src/dune
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
(library (name core_unix_uuid_unix) (public_name core_unix.uuid_unix)
(libraries core.uuid_unix) (preprocess no_preprocessing))
(libraries core.uuid) (preprocess no_preprocessing))
87 changes: 0 additions & 87 deletions work.sh

This file was deleted.

0 comments on commit 2df8f63

Please sign in to comment.