Debian Codegraph @

fvwm/scripts/convert_preferences

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 # convert FVWM-Crystal preferences to InfoStore
3
4 FC_VERSION=`grepscip-shell system . . grep. Version "${FVWM_SYSTEMDIR}"/components/functions/About | sedscip-shell system . . sed. -e 's/*About: Text "\$\[gt.Version\]: \([0-9.]\+\)"/\1/'`
5
6 convert_preferencescip-shell shell fvwm-crystal 3.4.1+dfsg-3 convert_preference().() {
7 sedscip-shell system . . sed. -i -e 's:SetEnv:InfoStoreAdd:' "$1"
8 }
9
10 convert_preferencesscip-shell shell fvwm-crystal 3.4.1+dfsg-3 convert_preferences().() {
11 convert_preferencescip-shell shell fvwm-crystal 3.4.1+dfsg-3 convert_preference(). "${FVWM_USERDIR}"/preferences/DefaultSoundCard
12 convert_preferencescip-shell shell fvwm-crystal 3.4.1+dfsg-3 convert_preference(). "${FVWM_USERDIR}"/preferences/LastChoosenRecipe
13 convert_preferencescip-shell shell fvwm-crystal 3.4.1+dfsg-3 convert_preference(). "${FVWM_USERDIR}"/preferences/DefaultMusicPlayer
14 convert_preferencescip-shell shell fvwm-crystal 3.4.1+dfsg-3 convert_preference(). "${FVWM_USERDIR}"/preferences/DefaultMixer
15
16 echoscip-shell system . . echo. ${FC_VERSION} > "${FVWM_USERDIR}"/Version
17 }
18
19 if [scip-shell system . . `[`. ! -f "${FVWM_USERDIR}"/Version ]
20 then convert_preferencesscip-shell shell fvwm-crystal 3.4.1+dfsg-3 convert_preferences().
21 else C_VERSION=`catscip-shell system . . cat. "${FVWM_USERDIR}"/Version`
22 if [scip-shell system . . `[`. "${C_VERSION}" != "{FC_VERSION}" ]
23 then echoscip-shell system . . echo. ${FC_VERSION} > "${FVWM_USERDIR}"/Version
24 fi
25 fi
26