Luna/tools/replace-stdint.sh
apio a164dcc160
All checks were successful
continuous-integration/drone/push Build is passing
libos: Add libos + very basic ArgumentParser
libluna but for stuff that interests only userspace, like an argument parser or files or stuff like that.
2023-03-29 18:27:02 +02:00

29 lines
695 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source $(dirname $0)/env.sh
cd $LUNA_ROOT
SOURCES=($(find kernel/src -type f | grep -v "\.asm" | grep -v "bootboot.h"))
SOURCES+=($(find libluna/src -type f))
SOURCES+=($(find libluna/include/luna -type f | grep -v "Types.h"))
SOURCES+=($(find libos/src -type f))
SOURCES+=($(find libos/include/os -type f))
for f in ${SOURCES[@]}
do
sed -i 's/uint8_t/u8/g' $f
sed -i 's/uint16_t/u16/g' $f
sed -i 's/uint32_t/u32/g' $f
sed -i 's/uint64_t/u64/g' $f
sed -i 's/int8_t/i8/g' $f
sed -i 's/int16_t/i16/g' $f
sed -i 's/int32_t/i32/g' $f
sed -i 's/int64_t/i64/g' $f
sed -i 's/size_t/usize/g' $f
sed -i 's/ssize_t/isize/g' $f
done