Skip to content

Commit

Permalink
feat: Create /usr/share/ublue-os/justfile which points to every file …
Browse files Browse the repository at this point in the history
…in /usr/share/ublue-os/just/*.just
  • Loading branch information
KyleGospo committed Sep 21, 2023
1 parent 9497cbb commit fe9dee7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/ublue-os-just/ublue-os-just.spec
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,15 @@ mkdir -p -m0755 %{buildroot}%{_datadir}/%{VENDOR}/%{sub_name}
cp %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{buildroot}%{_datadir}/%{VENDOR}/%{sub_name}
install -Dm755 %{SOURCE0} %{buildroot}%{_sysconfdir}/profile.d/ublue-os-just.sh

# Create justfile which always contains all .just files included in this package
for justfile in %{buildroot}%{_datadir}/%{VENDOR}/%{sub_name}/*.just; do
echo "!include %{_datadir}/%{VENDOR}/%{sub_name}/${justfile}" >> "%{buildroot}%{_datadir}/%{VENDOR}/justfile"
done

%files
%dir %attr(0755,root,root) %{_datadir}/%{VENDOR}/%{sub_name}
%attr(0644,root,root) %{_datadir}/%{VENDOR}/%{sub_name}/*.just
%attr(0644,root,root) %{_datadir}/%{VENDOR}/justfile
%attr(0755,root,root) %{_sysconfdir}/profile.d/ublue-os-just.sh

%changelog
Expand Down

0 comments on commit fe9dee7

Please sign in to comment.