mirror of
https://github.com/SerenityOS/serenity
synced 2026-04-25 17:15:42 +02:00
HackStudio: Move /res/devel to /usr/share/HackStudio
This commit is contained in:
committed by
Tim Schumacher
parent
3247392dca
commit
2bac21d149
@@ -135,7 +135,7 @@ if [ -f mnt/bin/network-settings ]; then
|
||||
fi
|
||||
|
||||
chmod 600 mnt/etc/shadow
|
||||
chmod 755 mnt/res/devel/templates/*.postcreate
|
||||
chmod 755 mnt/usr/share/HackStudio/templates/*.postcreate
|
||||
echo "done"
|
||||
|
||||
printf "creating initial filesystem structure... "
|
||||
|
||||
@@ -9,7 +9,7 @@ script_name="$(basename "$0")"
|
||||
|
||||
function list_templates() {
|
||||
echo "Available templates:"
|
||||
for file in ./Base/res/devel/templates/*.ini; do
|
||||
for file in ./Base/usr/share/HackStudio/templates/*.ini; do
|
||||
printf ' %s - ' "$(basename "${file%%.ini}")"
|
||||
awk -F "=" '/Description/ { print $2 }' "$file"
|
||||
done
|
||||
@@ -48,9 +48,9 @@ done
|
||||
TEMPLATE="$1"
|
||||
DESTINATION="$2"
|
||||
|
||||
TEMPLATE_SOURCE_DIRECTORY="./Base/res/devel/templates/$TEMPLATE"
|
||||
TEMPLATE_INI="./Base/res/devel/templates/$TEMPLATE.ini"
|
||||
TEMPLATE_POSTCREATE="./Base/res/devel/templates/$TEMPLATE.postcreate"
|
||||
TEMPLATE_SOURCE_DIRECTORY="./Base/usr/share/HackStudio/templates/$TEMPLATE"
|
||||
TEMPLATE_INI="./Base/usr/share/HackStudio/templates/$TEMPLATE.ini"
|
||||
TEMPLATE_POSTCREATE="./Base/usr/share/HackStudio/templates/$TEMPLATE.postcreate"
|
||||
|
||||
if [[ ! -f "$TEMPLATE_INI" ]]; then
|
||||
echo "$script_name: unknown template \"$TEMPLATE\"."
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace HackStudio {
|
||||
|
||||
class ProjectTemplate : public RefCounted<ProjectTemplate> {
|
||||
public:
|
||||
static ByteString templates_path() { return "/res/devel/templates"; }
|
||||
static ByteString templates_path() { return "/usr/share/HackStudio/templates"; }
|
||||
|
||||
static RefPtr<ProjectTemplate> load_from_manifest(ByteString const& manifest_path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user