-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·30 lines (22 loc) · 1.08 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env bash
BI="$PWD/scripts/installs.sh"
echo '#!/usr/bin/env bash'>"$BI"
for file in $PWD/installs/*
do
if test -f "$file"; then
cat <"$file" | sed -E 's|#!/usr/bin/env bash||'>>"$BI"
fi
done
chmod +x "$BI"
INIT_DESKTOP="$PWD/scripts/initialize-desktop.sh"
echo '#!/usr/bin/env bash'>"$INIT_DESKTOP"
cat <"./profile.sh" | sed -E 's|#!/usr/bin/env bash||'>>"$INIT_DESKTOP"
cat <"./scripts/installs.sh" | sed -E 's|#!/usr/bin/env bash||'>>"$INIT_DESKTOP"
cat <"./src/personalise.sh" | sed -E 's|#!/usr/bin/env bash||'>>"$INIT_DESKTOP"
cat <"./src/develop-env.sh" | sed -E 's|#!/usr/bin/env bash||'>>"$INIT_DESKTOP"
cat <"./src/initialize-desktop.sh" | sed -E 's|#!/usr/bin/env bash||'>>"$INIT_DESKTOP"
INIT_SERVER="$PWD/scripts/initialize-server.sh"
echo '#!/usr/bin/env bash'>"$INIT_SERVER"
cat <"./profile.sh" | sed -E 's|#!/usr/bin/env bash||'>>"$INIT_SERVER"
cat <"./scripts/installs.sh" | sed -E 's|#!/usr/bin/env bash||'>>"$INIT_SERVER"
cat <"./src/initialize-server.sh" | sed -E 's|#!/usr/bin/env bash||'>>"$INIT_SERVER"