equal
deleted
inserted
replaced
30 LANG_DIR="$SRC_DIR/lang" |
30 LANG_DIR="$SRC_DIR/lang" |
31 MEDIA_DIR="$ROOT_DIR/media" |
31 MEDIA_DIR="$ROOT_DIR/media" |
32 SOURCE_LIST="$ROOT_DIR/source.list" |
32 SOURCE_LIST="$ROOT_DIR/source.list" |
33 |
33 |
34 if [ "$1" = "--reconfig" ] || [ "$1" = "--reconfigure" ]; then |
34 if [ "$1" = "--reconfig" ] || [ "$1" = "--reconfigure" ]; then |
35 if ! [ -f "config.cache" ]; then |
35 if [ ! -f "config.cache" ]; then |
36 echo "can't reconfigure, because never configured before" |
36 echo "can't reconfigure, because never configured before" |
37 exit 1 |
37 exit 1 |
38 fi |
38 fi |
39 # Make sure we don't lock config.cache |
39 # Make sure we don't lock config.cache |
40 cat config.cache | sed 's/\\ /\\\\ /g' > cache.tmp |
40 cat config.cache | sed 's/\\ /\\\\ /g' > cache.tmp |
41 sh cache.tmp |
41 sh cache.tmp |
42 rm -f cache.tmp |
42 rm -f cache.tmp |
43 exit $? |
43 exit $? |
44 fi |
44 fi |
45 |
45 |
46 export SHOW_HELP="0" |
46 # 'export SHOW_HELP="0"' doesn't work on some systems |
|
47 SHOW_HELP="0" |
|
48 export SHOW_HELP |
47 |
49 |
48 set_default |
50 set_default |
49 detect_params "$@" |
51 detect_params "$@" |
50 check_params |
52 check_params |
51 if [ "$SHOW_HELP" != "0" ]; then |
53 if [ "$SHOW_HELP" != "0" ]; then |
68 PIPE_SORT="sed s/a/a/" |
70 PIPE_SORT="sed s/a/a/" |
69 else |
71 else |
70 PIPE_SORT="$sort" |
72 PIPE_SORT="$sort" |
71 fi |
73 fi |
72 |
74 |
73 if ! [ -f "$LANG_DIR/english.txt" ]; then |
75 if [ ! -f "$LANG_DIR/english.txt" ]; then |
74 echo "Languages not found in $LANG_DIR. Can't continue without it." |
76 echo "Languages not found in $LANG_DIR. Can't continue without it." |
75 echo "Please make sure the dir exists and contains at least english.txt" |
77 echo "Please make sure the dir exists and contains at least english.txt" |
76 fi |
78 fi |
77 |
79 |
78 # Read the source.list and process it |
80 # Read the source.list and process it |