aboutsummaryrefslogtreecommitdiffhomepage
path: root/org
diff options
context:
space:
mode:
Diffstat (limited to 'org')
-rw-r--r--org/config_make.org49
-rw-r--r--org/config_nix.org11
2 files changed, 60 insertions, 0 deletions
diff --git a/org/config_make.org b/org/config_make.org
index 5440b68..0de4564 100644
--- a/org/config_make.org
+++ b/org/config_make.org
@@ -1101,3 +1101,52 @@ gitsnapshot: distclean tangle
distclean init \
tangle gitsnapshot
#+END_SRC
+
+** makefile :makefile:
+*** tangle
+
+#+HEADER: :tangle ../sundry/spine_search_cgi/makefile
+#+BEGIN_SRC makefile
+<<make_get_project_cgi_search_dependencies_github>>
+#+END_SRC
+
+********* get project dependencies
+
+#+NAME: make_get_project_cgi_search_dependencies_github
+#+BEGIN_SRC makefile
+get_depends:
+ hwd=$$(echo `pwd`) && \
+ gwd="$${hwd}/src/ext_depends_cgi" && \
+ dirs=$$(echo `ls -gx $${gwd}`) && \
+ license_bsl="Boost Software License 1.0 (BSL-1.0)" && \
+ echo $${hwd} && \
+ echo $${gwd} && \
+ echo $${dirs} && \
+ dub upgrade; \
+ cd $${gwd} && \
+ for dir in $${dirs}; do \
+ if [ -d $${dir} ]; then \
+ echo $${dir} && \
+ if [[ "arsd" == $${dir} ]]; then \
+ echo $${dir} && \
+ rm -rf $${dir} && \
+ mkdir $${dir} && \
+ aria2c -o "$${dir}/cgi.d" "https://raw.githubusercontent.com/adamdruppe/arsd/master/cgi.d" && \
+ cd $${gwd}; \
+ elif [[ "d2sqlite3" == $${dir} ]]; then \
+ echo $${dir} && \
+ rm -rf $${dir} && \
+ git clone --depth=1 https://github.com/dlang-community/$${dir} && \
+ cd $${dir} && \
+ echo "$${dir} `git rev-parse HEAD | cut -c 1-8`" > ../$${dir}.meta && \
+ echo "https://github.com/dlang-community/$${dir}" >> ../$${dir}.meta && \
+ echo "$${license_bsl}" >> ../$${dir}.meta && \
+ cd $${gwd} && \
+ rm -rf $${dir}/.git; \
+ fi; \
+ fi; \
+ done; \
+ cd $${hwd}
+set_depends: get_depends
+ dub describe | sed 's~$(shell echo `pwd | sed 's_/_\\/_g'`)~.~g' > dub_describe.json
+#+END_SRC
diff --git a/org/config_nix.org b/org/config_nix.org
index 1c6ed2f..443094b 100644
--- a/org/config_nix.org
+++ b/org/config_nix.org
@@ -605,6 +605,16 @@ rund
#meson
#+END_SRC
+***** packages tools
+
+#+NAME: shell_packages_tool_download
+#+BEGIN_SRC nix
+### tools
+#curl
+#wget
+aria
+#+END_SRC
+
***** packages candy
#+NAME: shell_packages_candy
@@ -1141,6 +1151,7 @@ mkShell {
<<shell_packages_nix_related>>
<<shell_packages_d_build_related>>
<<shell_packages_search_related_sqlite>>
+ <<shell_packages_tool_download>>
<<shell_packages_candy>>
];
shellHook = ''