Changeset View
Changeset View
Standalone View
Standalone View
branches/stable/l10n-kf5/scripts/populate_documentation.sh
Context not available. | |||||
31 | return $res | 31 | return $res | ||
---|---|---|---|---|---|
32 | } | 32 | } | ||
33 | 33 | | |||
34 | if [ ! -d scripts ]; then | 34 | OLD_PWD=$PWD | ||
35 | echo "You have to run the script from the parent directory of scripts/" | 35 | cd $(dirname $0) | ||
36 | exit | 36 | SCRIPTY_DIR=$PWD | ||
37 | fi | 37 | cd $OLD_PWD | ||
38 | 38 | | |||
39 | # Work in the parent directory of scripts/ | ||||
40 | cd $SCRIPTY_DIR/.. | ||||
41 | | ||||
39 | mkdir -p documentation | 42 | mkdir -p documentation | ||
40 | cd documentation | 43 | cd documentation | ||
41 | 44 | | |||
Context not available. | |||||
207 | echo "There was an error updating the sources" | 210 | echo "There was an error updating the sources" | ||
208 | exit 1 | 211 | exit 1 | ||
209 | fi | 212 | fi | ||
210 | done < "../scripts/documentation_paths" | 213 | done < "$SCRIPTY_DIR/documentation_paths" | ||
211 | 214 | | |||
212 | cd .. | 215 | cd .. | ||
213 | 216 | | |||
Context not available. |