-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpumpos.sh
More file actions
executable file
·121 lines (109 loc) · 4.19 KB
/
pumpos.sh
File metadata and controls
executable file
·121 lines (109 loc) · 4.19 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#!/usr/bin/env bash
###
# Pump It Up OS (pumpos) build script.
#
# This is your entry point for creating disk images for use with Pump It Up
# games, deploy data to them and tweak configurations.
#
# Check the usage message for available commands. Call each command without
# parameters to get further usage messages about each of them.
###
# Root path of this script
readonly ROOT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
case "$1" in
os-config)
"$ROOT_PATH/os/create-config.sh" "${@:2}"
;;
os-install)
"$ROOT_PATH/os/install.sh" "${@:2}"
;;
os-qemu-boot)
"$ROOT_PATH/os/qemu-boot.sh" "${@:2}"
;;
os-chroot)
"$ROOT_PATH/os/chroot.sh" "${@:2}"
;;
deploy-dir)
"$ROOT_PATH/deploy/dir.sh" "${@:2}"
;;
deploy-zip)
"$ROOT_PATH/deploy/zip.sh" "${@:2}"
;;
deploy-sgl)
"$ROOT_PATH/deploy/sgl/sgl.sh" "${@:2}"
;;
deploy-piu-data)
"$ROOT_PATH/deploy/piu/data.sh" "${@:2}"
;;
deploy-piu-pumptools)
"$ROOT_PATH/deploy/piu/pumptools.sh" "${@:2}"
;;
deploy-piu-backup-save)
"$ROOT_PATH/deploy/piu/backup-save.sh" "${@:2}"
;;
deploy-piu-save)
"$ROOT_PATH/deploy/piu/save.sh" "${@:2}"
;;
deploy-itg-mame-ddrio)
"$ROOT_PATH/deploy/itg/mame-ddrio.sh" "${@:2}"
;;
deploy-itg-mame-roms)
"$ROOT_PATH/deploy/itg/mame-roms.sh" "${@:2}"
;;
conf-boot)
"$ROOT_PATH/conf/boot.sh" "${@:2}"
;;
conf-piu-pumptools)
"$ROOT_PATH/conf/piu/pumptools.sh" "${@:2}"
;;
pipeline-piu-deploy)
"$ROOT_PATH/pipeline/piu/deploy.sh" "${@:2}"
;;
pipeline-piu-conf)
"$ROOT_PATH/pipeline/piu/conf.sh" "${@:2}"
;;
pipeline-itg-deploy)
"$ROOT_PATH/pipeline/itg/deploy.sh" "${@:2}"
;;
pipeline-itg-conf)
"$ROOT_PATH/pipeline/itg/conf.sh" "${@:2}"
;;
*)
echo "Pump It Up OS (pumpos) build script, available options:"
echo ""
echo "OS install related commands"
echo " os-config - Create a configuration for installing pumpos to a physical disk"
echo " os-install - Install pumpos to a connected physical disk"
echo " os-qemu-boot - Boot physical disk with pumpos in qemu for further configuration or debugging"
echo " os-chroot - Chroot into the mounted installation of pumpos for configuration or debugging"
echo ""
echo ""
echo "Deploy stuff (fine granular)"
echo " deploy-dir - Deploy/update a directory on pumpos with a local one"
echo " deploy-zip - Extract the contents of a zip file and deploy them to a target dir on pumpos"
echo ""
echo " deploy-sgl - Deploy/update SGL data from distribution package"
echo ""
echo " deploy-piu-data - Deploy/update the data of one or multiple piu games"
echo " deploy-piu-pumptools - Deploy/update pumptools of one or multiple piu games"
echo " deploy-piu-backup-save - Backup all piu save directories on a target pumpos deployment"
echo " deploy-piu-save - Deploy all backed up save directories of piu games to a target deployment"
echo ""
echo " deploy-itg-mame-ddrio - Deploy/update the ddrio piuio itg impl for ddr-mame"
echo " deploy-itg-mame-roms - Deploy/update roms for ddr-mame"
echo ""
echo "Configure stuff"
echo " conf-boot - Configure what pumpos is supposed to do/run on boot"
echo ""
echo " conf-piu-pumptools - Configure the hooks of the pumptools deployment of one or multiple games"
echo ""
echo ""
echo "Pipelines combining many steps"
echo " pipeline-piu-deploy - Pipeline to deploy piu games to a pumpos target"
echo " pipeline-piu-conf - Pipeline to configure piu games on a pumpos target"
echo ""
echo " pipeline-itg-deploy - Pipeline to deploy games for an ITG cabinet to a pumpos target"
echo " pipeline-itg-conf - Pipeline to configure games an a ITG cabinet pumpos target"
echo ""
exit 1
esac