File tree 1 file changed +2
-29
lines changed
1 file changed +2
-29
lines changed Original file line number Diff line number Diff line change 5
5
PRGNAM=RetroArch
6
6
SRCNAM=" $( printf %s $PRGNAM | tr ' [:upper:]' ' [:lower:]' ) "
7
7
TMP=${TMP:-/ tmp/ libretro}
8
- FORCE=0
9
- CLEAN=0
10
-
11
- for x in $@ ; do
12
- if [ " $x " == " --force" ]; then
13
- FORCE=1
14
- fi
15
- if [ " $x " == " --clean" ]; then
16
- CLEAN=1
17
- fi
18
- done
19
8
20
9
# Exit on errors and unset variables
21
10
set -eu
22
11
23
12
# Ensure a clean and fully updated repo
24
- if [ -d $SRCNAM ]; then
25
- if [ $CLEAN -gt 0 ]; then
26
- rm -rf -- $SRCNAM
27
- elif [ $FORCE -gt 0 ]; then
28
- echo " Using existing state of $SRCNAM . If build fails, use --clean to delete and re-clone."
29
- else
30
- echo " FATAL: $SRCNAM / exists."
31
- echo " "
32
- echo " - To build with existing sources: $0 --force"
33
- echo " - To delete existing sources and re-clone: $0 --clean"
34
- echo " "
35
- echo " WARNING: The --clean option does not preserve forks. That is,"
36
- echo " the original libretro/$PRGNAM repository will be cloned, not"
37
- echo " your personal fork. To build a release build from a fork,"
38
- echo " use --force."
39
- exit 1
40
- fi
41
- fi
13
+ [ -d $SRCNAM ] && rm -rf -- $SRCNAM
14
+
42
15
./libretro-fetch.sh $SRCNAM
43
16
44
17
COMMIT=" $( git --work-tree=$SRCNAM --git-dir=$SRCNAM /.git describe --abbrev=0 \
You can’t perform that action at this time.
0 commit comments