]> code.citadel.org Git - citadel.git/commitdiff
cleaned up 32
authorArt Cancro <ajc@citadel.org>
Tue, 14 Feb 2023 15:01:32 +0000 (10:01 -0500)
committerArt Cancro <ajc@citadel.org>
Tue, 14 Feb 2023 15:01:32 +0000 (10:01 -0500)
citadel/utils/ctdl3264_prep.sh

index fc5cdca0fe664e06c5656233a91fc251b9cd38f0..dd27699f74bdd9b979abcc9a992295998c96f90c 100755 (executable)
@@ -14,15 +14,22 @@ convert_struct() {
        | sed s/"^struct $1 {"/"struct ${1}_32 {"/g \
        | sed s/"int "/"int32_t "/g \
        | sed s/"long "/"int32_t "/g \
-       | sed s/"time_t "/"int32_t "/g
+       | sed s/"time_t "/"int32_t "/g \
+       | sed s/"struct ExpirePolicy "/"struct ExpirePolicy_32 "/g
+       echo ''
 
 }
 
 # Here we go.  Let's make this thing happen.
 (
+
+       echo '// This file was automatically generated by ctdl3264_prep.sh'
+       echo '// Attempting to modify it would be an exercise in futility.'
+       echo ''
+
        convert_struct "ctdluser"
-       convert_struct "ctdlroom"
        convert_struct "ExpirePolicy"
+       convert_struct "ctdlroom"
        convert_struct "floor"
 
 ) >utils/ctdl3264_structs.h