diff --git a/tools/iop-layout-legacy.sh b/tools/iop-layout-legacy.sh deleted file mode 100755 index 659ee4204adb..000000000000 --- a/tools/iop-layout-legacy.sh +++ /dev/null @@ -1,182 +0,0 @@ -#!/bin/bash - -if pgrep -x "darktable" > /dev/null ; then - echo "error: darktable is running, please exit first" - exit 1 -fi - -# do not touch the following 5 definitions - -BASIC=1 -TONE=2 -COLOR=3 -CORRECT=4 -EFFECT=5 - -### -# module-group order, just reorder the module-group -### - -module_group=( - $BASIC - $TONE - $COLOR - $CORRECT - $EFFECT -) - -### -# move module from one group to another -### - -group_basic=( - 'basecurve' - 'temperature' - 'shadhi' - 'flip' - 'rawprepare' - 'colorreconstruct' - 'demosaic' - 'colisa' - 'clipping' - 'exposure' - 'highlights' - 'invert' - 'basicadj' - 'negadoctor' - 'toneequal' -) - -group_tone=( - 'zonesystem' - 'tonecurve' - 'rgbcurve' - 'tonemapping' - 'levels' - 'rgblevels' - 'relight' - 'bilat' - 'globaltonemap' - 'filmic' - 'filmicrgb' -) - -group_color=( - 'profile_gamma' - 'velvia' - 'vibrance' - 'colorbalance' - 'colorcontrast' - 'colorcorrection' - 'colorchecker' - 'colorout' - 'channelmixer' - 'colortransfer' - 'colorzones' - 'colorin' - 'monochrome' -) - -group_correct=( - 'ashift' - 'rawdenoise' - 'retouch' - 'rotatepixels' - 'scalepixels' - 'sharpen' - 'spotremoval' - 'hotpixels' - 'defringe' - 'cacorrect' - 'bilateral' - 'nlmeans' - 'denoiseprofile' - 'dither' - 'atrous' - 'lens' - 'liquify' - 'hazeremoval' -) - -group_effect=( - 'watermark' - 'bloom' - 'vignette' - 'splittoning' - 'lowlight' - 'lowpass' - 'colormapping' - 'colorize' - 'borders' - 'graduatednd' - 'grain' - 'highpass' - 'soften' -) - -######################################### END OF CONFIGURATION HERE - -[ -z $DT_CONFIGDIR ] && DT_CONFIGDIR=$HOME/.config/darktable - -FILE=$DT_CONFIGDIR/darktablerc - -[ ! -f $FILE ] && echo darktable configuration file 'darktablerc' does not exists && exit 1 - -BCK="$FILE.iop-conf-backup-$(date +%Y%m%d-%H%M%S)" - -cp $FILE $BCK - -echo backup will be created in: -echo $BCK -echo Do you want to continue? - -select yn in "Yes" "No"; do - case $yn in - Yes ) break;; - No ) exit;; - esac -done - -sed -i "/plugins\/darkroom\/group_order\//d" $FILE - -pos=0 -while [ "x${module_group[pos]}" != "x" ]; do - group=${module_group[pos]} - pos=$(( $pos + 1 )) - echo "plugins/darkroom/group_order/$group=$pos" >> $FILE -done - -function get_group_pos() -{ - local GROUP=$1 - - pos=0 - while [ "x${module_group[pos]}" != "x" ]; do - if [ ${module_group[pos]} == $GROUP ]; then - echo $(( $pos + 1 )) - fi - pos=$(( $pos + 1 )); - done -} - -function set_iop_group() -{ - local GROUP_POS=$(get_group_pos $1) - shift - local LIST=("${@}") - - pos=0 - while [ "x${LIST[pos]}" != "x" ]; do - name=${LIST[pos]} - pos=$(( $pos + 1 )) - echo "plugins/darkroom/$name/modulegroup=$GROUP_POS" >> $FILE - done -} - -sed -i "/plugins\/darkroom\/[^/]*\/modulegroup/d" $FILE - -set_iop_group $BASIC "${group_basic[@]}" -set_iop_group $TONE "${group_tone[@]}" -set_iop_group $COLOR "${group_color[@]}" -set_iop_group $CORRECT "${group_correct[@]}" -set_iop_group $EFFECT "${group_effect[@]}" diff --git a/tools/iop-layout.sh b/tools/iop-layout.sh deleted file mode 100755 index 71b9889e9ad3..000000000000 --- a/tools/iop-layout.sh +++ /dev/null @@ -1,183 +0,0 @@ -#!/bin/bash - -if pgrep -x "darktable" > /dev/null ; then - echo "error: darktable is running, please exit first" - exit 1 -fi - -# do not touch the following 5 definitions - -BASIC=1 -TONE=2 -COLOR=3 -CORRECT=4 -EFFECT=5 - -### -# module-group order, just reorder the module-group -### - -module_group=( - $BASIC - $CORRECT - $TONE - $COLOR - $EFFECT -) - -### -# move module from one group to another -### - -group_basic=( - 'basecurve' - 'clipping' - 'demosaic' - 'exposure' - 'graduatednd' - 'colorin' - 'invert' - 'lens' - 'flip' - 'colorout' - 'ashift' - 'rawprepare' - 'rotatepixels' - 'scalepixels' - 'tonemap' - 'profile_gamma' - 'temperature' - 'filmic' - 'filmicrgb' - 'basicadj' - 'negadoctor' - 'toneequal' -) - -group_tone=( - 'bloom' - 'colisa' - 'atrous' - 'relight' - 'globaltonemap' - 'levels' - 'rgblevels' - 'bilat' - 'shadhi' - 'tonecurve' - 'zonesystem' - 'rgbcurve' -) - -group_color=( - 'channelmixer' - 'colorbalance' - 'colorcontrast' - 'colorcorrection' - 'colorchecker' - 'colormapping' - 'colortransfer' - 'colorzones' - 'colorize' - 'lowlight' - 'lut3d' - 'monochrome' - 'splittoning' - 'velvia' - 'vibrance' -) - -group_correct=( - 'cacorrect' - 'colorreconstruct' - 'defringe' - 'bilateral' - 'nlmeans' - 'denoiseprofile' - 'dither' - 'hazeremoval' - 'highlights' - 'hotpixels' - 'rawdenoise' -) - -group_effect=( - 'borders' - 'grain' - 'highpass' - 'liquify' - 'lowpass' - 'retouch' - 'sharpen' - 'soften' - 'spots' - 'vignette' - 'watermark' -) - -######################################### END OF CONFIGURATION HERE - -[ -z $DT_CONFIGDIR ] && DT_CONFIGDIR=$HOME/.config/darktable - -FILE=$DT_CONFIGDIR/darktablerc - -[ ! -f $FILE ] && echo darktable configuration file 'darktablerc' does not exists && exit 1 - -BCK="$FILE.iop-conf-backup-$(date +%Y%m%d-%H%M%S)" - -cp $FILE $BCK - -echo backup will be created in: -echo $BCK -echo Do you want to continue? - -select yn in "Yes" "No"; do - case $yn in - Yes ) break;; - No ) exit;; - esac -done - -sed -i "/plugins\/darkroom\/group_order\//d" $FILE - -pos=0 -while [ "x${module_group[pos]}" != "x" ]; do - group=${module_group[pos]} - pos=$(( $pos + 1 )) - echo "plugins/darkroom/group_order/$group=$pos" >> $FILE -done - -function get_group_pos() -{ - local GROUP=$1 - - pos=0 - while [ "x${module_group[pos]}" != "x" ]; do - if [ ${module_group[pos]} == $GROUP ]; then - echo $(( $pos + 1 )) - fi - pos=$(( $pos + 1 )); - done -} - -function set_iop_group() -{ - local GROUP_POS=$(get_group_pos $1) - shift - local LIST=("${@}") - - pos=0 - while [ "x${LIST[pos]}" != "x" ]; do - name=${LIST[pos]} - pos=$(( $pos + 1 )) - echo "plugins/darkroom/$name/modulegroup=$GROUP_POS" >> $FILE - done -} - -sed -i "/plugins\/darkroom\/[^/]*\/modulegroup/d" $FILE - -set_iop_group $BASIC "${group_basic[@]}" -set_iop_group $TONE "${group_tone[@]}" -set_iop_group $COLOR "${group_color[@]}" -set_iop_group $CORRECT "${group_correct[@]}" -set_iop_group $EFFECT "${group_effect[@]}" diff --git a/tools/keybinding2docbook.awk b/tools/keybinding2docbook.awk deleted file mode 100644 index 09a0cd5d4b43..000000000000 --- a/tools/keybinding2docbook.awk +++ /dev/null @@ -1,91 +0,0 @@ -BEGIN { - FS = ";" - print "#include " - print "#include " - print "#include " - print "#include " - print "#include " - print "struct accel{ char *path; char *key; };" - print "gint compare(gconstpointer a, gconstpointer b){" - print " const char *sa = ((struct accel*)a)->path;" - print " const char *sb = ((struct accel*)b)->path;" - print " return strcasecmp(sa, sb);" - print "}" - print "int main(int argc, char *argv[])" - print "{" - print " GSList *accels = NULL;" - print " struct accel *acc;" - print " char buffer[1024];" - print " char *s, *d, *temp;" -} - -/^"[^"]+";[^;]+;/{ - print " acc = (struct accel*)malloc(sizeof(struct accel));" - print " s = temp = strdup(" $1 ");" - print " d = buffer;" - print " while(*s != '\\0')" - print " {" - print " if(*s == '<')" - print " {" - print " *d = '&';d++;*d = 'l';d++;*d = 't';d++;*d = ';';" - print " }" - print " else if(*s == '>')" - print " {" - print " *d = '&';d++;*d = 'g';d++;*d = 't';d++;*d = ';';" - print " }" - print " else" - print " {" - print " *d = *s;" - print " }" - print " d++; s++;" - print " }" - print " *d = '\\0';" - print " acc->path = strdup(buffer);" - print " free(temp);" - print " s = temp = strdup(gtk_accelerator_name(" $2 "," $3 "));" - print " d = buffer;" - print " while(*s != '\\0')" - print " {" - print " if(*s == '<')" - print " {" - print " *d = '&';d++;*d = 'l';d++;*d = 't';d++;*d = ';';" - print " }" - print " else if(*s == '>')" - print " {" - print " *d = '&';d++;*d = 'g';d++;*d = 't';d++;*d = ';';" - print " }" - print " else" - print " {" - print " *d = *s;" - print " }" - print " d++; s++;" - print " }" - print " *d = '\\0';" - print " acc->key = strdup(buffer);" - print " free(temp);" - print " accels = g_slist_insert_sorted(accels, acc, compare);" -} - -END { - print " printf(\"\\n\");" - print " printf(\"%s\\n\",\"\");" - print " printf(\"\\n\");" - print " printf(\"\\n\");" - print " while(accels){" - print " acc = (struct accel*)accels->data;" - print " printf(\"\\n\");" - print " printf(\"\\n\");" - print " printf(\"%s\\n\", acc->path);" - print " printf(\"\\n\");" - print " printf(\"\\n\");" - print " printf(\"%s\\n\", acc->key);" - print " printf(\"\\n\");" - print " printf(\"\\n\");" - print " accels = g_slist_next(accels);" - print " }" - print " printf(\"\\n\");" - print " printf(\"\\n\");" - print " printf(\"\\n\");" - print " return 0;" - print "}" -} diff --git a/tools/keybinding2docbook.sh b/tools/keybinding2docbook.sh deleted file mode 100755 index 74720046814b..000000000000 --- a/tools/keybinding2docbook.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -# Run from darktable root directory -git grep -A 2 -h gtk_accel_map_add_entry | tr -d '\n' | \ -sed 's/gtk_accel_map_add_entry *( *\(\"[^\"]\+\"\) *, *\([^ ,]\+\) *, *\([^,)]\+\)) *;/%~\1;\2;\3%~/g' | \ -tr '%~' '\n' | \ -awk -f 'tools/keybinding2docbook.awk' | \ -gcc $(pkg-config --cflags --libs gtk+-2.0) -o tmp -xc - - -./tmp > ./doc/usermanual/addendum/keymappings.xml -rm ./tmp diff --git a/tools/update_web_usermanual.sh b/tools/update_web_usermanual.sh deleted file mode 100755 index 4649a6e92eb6..000000000000 --- a/tools/update_web_usermanual.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -cd build || exit -rm -r doc/usermanual -make darktable-usermanual-html -rm -r ../doc/htdocs/usermanual -cp -r doc/usermanual/html ../doc/htdocs/usermanual