From: Kevin Day Date: Tue, 25 Apr 2023 02:59:28 +0000 (-0500) Subject: Update: The stand alone builds should also support fakefiles. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=ec682f1bbe8d086227bfe293c6b74bb6893bcc5c;p=fll Update: The stand alone builds should also support fakefiles. This is an oversight from previous changes where stand alone support is implemented and where the fakefile is make more advanced (adding help etc..). --- diff --git a/build/scripts/package.sh b/build/scripts/package.sh index c045d60..2ae11b6 100644 --- a/build/scripts/package.sh +++ b/build/scripts/package.sh @@ -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 index 0000000..75e8cf3 --- /dev/null +++ b/build/stand_alone/fake.fakefile @@ -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.