]> Kevux Git Server - fll/commitdiff
Update: The stand alone builds should also support fakefiles.
authorKevin Day <kevin@kevux.org>
Tue, 25 Apr 2023 02:59:28 +0000 (21:59 -0500)
committerKevin Day <kevin@kevux.org>
Tue, 25 Apr 2023 02:59:28 +0000 (21:59 -0500)
This is an oversight from previous changes where stand alone support is implemented and where the fakefile is make more advanced (adding help etc..).

build/scripts/package.sh
build/stand_alone/fake.fakefile [new file with mode: 0644]

index c045d60da429cc2ab8911587ccd7b79a9f295256..2ae11b6ae059b690e25216cc3917929fdfa6b3c6 100644 (file)
@@ -2554,6 +2554,20 @@ package_operation_stand_alone() {
       break
     fi
 
+    cp $verbose_common -R ${path_build}stand_alone/${name}.fakefile ${package}data/build/fakefile
+
+    if [[ $? -ne 0 ]] ; then
+      if [[ $verbosity != "quiet" ]] ; then
+        package_print_first
+
+        echo -e "${c_error}ERROR: Failed to copy file ${c_notice}${path_build}stand_alone/${name}.fakefile${c_error} to ${c_notice}${package}data/build/fakefile${c_error}.${c_reset}"
+      fi
+
+      let failure=1
+
+      break
+    fi
+
     if [[ ! -d ${package}sources/c/program/${name}/ ]] ; then
       mkdir $verbose_common -p ${package}sources/c/program/$name/
 
diff --git a/build/stand_alone/fake.fakefile b/build/stand_alone/fake.fakefile
new file mode 100644 (file)
index 0000000..75e8cf3
--- /dev/null
@@ -0,0 +1,27 @@
+# fss-0005 iki-0002
+
+settings:
+  fail exit
+  modes stand_alone clang test fanalyzer thread threadless
+
+  environment PATH LD_LIBRARY_PATH
+  environment LANG LC_ALL LC_COLLATE LC_CTYPE LC_FASTMSG LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME LOCPATH NLSPATH
+
+main:
+  build
+
+install:
+  shell ./install.sh parameter:'work' parameter:'verbosity' parameter:'color'
+
+help:
+  print
+  print context:'title'Fakefile Options for Featureless Make Software.context:'reset'
+
+  print
+  print The following operations are available\:
+  print "  - context:'notable'help:context:'reset'    Perform the help operation, printing this message."
+  print "  - context:'notable'install:context:'reset' A helper operation that simply calls the ./install.sh script with default settings."
+  print "  - context:'notable'main:context:'reset'    The default compilation using the build settings mode."
+
+  print
+  print The context:'notable'install context:'reset'operation supports the context:'notable'work,context:'reset' context:'notable'verbosity,context:'reset' and context:'notable'color context:'reset'parameters.