From a290710b1b0060436f6522460f55a4fda74232b0 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Thu, 28 Jul 2016 17:46:39 +0000 Subject: [PATCH] generate_xlat_in.sh: remove obsolete script This script has been created by commit v4.8-180-g0ed617b for the one-shot job of automatic convertion of xlat structures from *.c files to xlat/*.in files. * generate_xlat_in.sh: Remove. --- generate_xlat_in.sh | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100755 generate_xlat_in.sh diff --git a/generate_xlat_in.sh b/generate_xlat_in.sh deleted file mode 100755 index b5a633f9..00000000 --- a/generate_xlat_in.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -convert() { - sed -n '/^\(static \)\?const struct xlat '"$n"'\[\] = {$/,/^};$/{ - s/^[[:space:]]*XLAT(\([^)]\+\)).*/\1/p - s/^[[:space:]]*{[[:space:]]*(\?\(1<<[^),[:space:]]\+\).*/\1/p - s/.*not NULL-terminated.*/#unterminated/p - s/^\([[:space:]]*{.*\)/\1/p - s/^\t*\( *[/*].*\)/\1/p}' "$f" >> xlat/"$n".in - sed -i '/^\(static \)\?const struct xlat '"$n"'\[\] = {$/,/^};$/c #include "xlat/'"$n"'.h"' "$f" -} - -for f; do - for n in $(sed -n 's/^\(static \)\?const struct xlat \([a-z0-9_]\+\)\[\] = {$/\2/p' "$f"); do - case "$n" in - cacheflush_flags|struct_user_offsets) # skip - ;; - ioprio_class|ioprio_who|mtd_mode_options|personality_options|syslog_action_type|ubi_volume_props|ubi_volume_types) - echo '#unconditional' > xlat/"$n".in - convert - ;; - *) - > xlat/"$n".in - convert - ;; - esac - done -done