diff options
| author | Leah Rowe <leah@libreboot.org> | 2025-04-12 13:44:05 +0100 | 
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2025-04-12 13:44:05 +0100 | 
| commit | 23b942c83e93f529f255005d37f7ca8dea9a2ccf (patch) | |
| tree | 2ada0821892e18c0cf42fc9d79440cc9130a6b8f /include | |
| parent | a03bb793aeaa497b03f9addca16e70644d8ec288 (diff) | |
lib.sh: hardcode projectname/projectsite
remove the corresponding files, containing these strings
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/lib.sh | 13 | 
1 files changed, 7 insertions, 6 deletions
| diff --git a/include/lib.sh b/include/lib.sh index 68c2b847..e36f8e1d 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -6,6 +6,9 @@  export LC_COLLATE=C  export LC_ALL=C +projectname="libreboot" +projectsite="https://libreboot.org/" +  [ -z "${PATH+x}" ] && \      export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"  xbmkpath="$PATH" @@ -43,13 +46,12 @@ chkvars()  	done; :  } -eval "`setvars "" _nogit board reinstall versiondate projectsite projectname \ -    aur_notice configdir datadir version relname xbmk_parent`" +eval "`setvars "" _nogit board reinstall versiondate aur_notice configdir \ +    datadir version relname xbmk_parent`" -for fv in projectname projectsite version versiondate; do +for fv in version versiondate; do  	eval "[ ! -f \"$fv\" ] || read -r $fv < \"$fv\" || :"  done -chkvars projectname projectsite  setcfg()  { @@ -164,7 +166,7 @@ version_="$version"  versiondate_="$versiondate"  [ ! -e ".git" ] || versiondate="$(git show --no-patch --no-notes \      --pretty='%ct' HEAD)" || versiondate="$versiondate_" -for p in projectname version versiondate projectsite; do +for p in version versiondate; do  	chkvars "$p"  	eval "x_ printf \"%s\\n\" \"\$$p\" > $p"  done @@ -189,7 +191,6 @@ mkrom_tarball()  {  	printf "%s\n" "$version" > "$1/version" || $err "$1 !version"  	printf "%s\n" "$versiondate" > "$1/versiondate" || $err "$1 !vdate" -	printf "%s\n" "$projectname" > "$1/projectname" || $err "$1 !pname"  	mktarball "$1" "${1%/*}/${relname}_${1##*/}.tar.xz"  	x_ rm -Rf "$1" | 
