nyxwm

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c4ee0e87a1a32c04e35b1e52746c2dbce1a49cf0
parent 93419b7ffb5bd21b3cd3445e6f4361d30813ae47
Author: nyangkosense <sebastian.michalk@protonmail.com>
Date:   Mon, 14 Oct 2024 15:22:46 +0000

init

Diffstat:
Doutput.txt | 3---
Drename.sh | 36------------------------------------
2 files changed, 0 insertions(+), 39 deletions(-)

diff --git a/output.txt b/output.txt @@ -1,3 +0,0 @@ -rm -f nyxwm *.o -cc -O3 -std=c99 -Wall -Wextra -pedantic -Wold-style-declaration -Wmissing-prototypes -Wno-unused-parameter -I/usr/include/freetype2 -I/usr/include/libpng16 -o nyxwm nyxwm.c -lX11 -lXft -lfreetype -install -Dm755 nyxwm /usr/bin/nyxwm diff --git a/rename.sh b/rename.sh @@ -1,36 +0,0 @@ -#!/bin/bash - -# Check if a new name is provided -if [ "$#" -ne 1 ]; then - echo "Usage: $0 <new_name>" - echo "Example: $0 nyxwm" - exit 1 -fi - -NEW_NAME=$1 -OLD_NAME="nyxwm" - -# Function to rename files -rename_files() { - find . -depth -name "*$OLD_NAME*" -execdir bash -c 'mv "$1" "${1//'$OLD_NAME'/'$NEW_NAME'}"' _ {} \; -} - -# Function to replace content in files -replace_content() { - grep -rl "$OLD_NAME" . | xargs sed -i "s/$OLD_NAME/$NEW_NAME/g" -} - -# Rename files -echo "Renaming files..." -rename_files - -# Replace content in files -echo "Replacing content in files..." -replace_content - -# Update Makefile -echo "Updating Makefile..." -sed -i "s/$OLD_NAME/$NEW_NAME/g" Makefile - -echo "Renaming complete. Project renamed from $OLD_NAME to $NEW_NAME." -echo "Please review the changes and update any remaining occurrences manually if necessary."