1
0
mirror of https://github.com/pConst/basic_verilog.git synced 2025-01-28 07:02:55 +08:00

Updated scripts

This commit is contained in:
Konstantin Pavlov 2022-12-14 13:58:09 +03:00
parent 50300add8a
commit bdfd79b542
4 changed files with 68 additions and 21 deletions

16
scripts/clean_kcpsm.sh Normal file
View File

@ -0,0 +1,16 @@
#! /usr/bin/env bash
# ------------------------------------------------------------------------------
# clean_kcpsm.sh
# published as part of https://github.com/pConst/basic_verilog
# Konstantin Pavlov, pavlovconst@gmail.com
# ------------------------------------------------------------------------------
#
# Use this file as a boilerplate for your custom clean script
# for KCPSM directories
rm -f *.txt
rm -f *.fmt
rm -f *.log

View File

@ -0,0 +1,39 @@
#! /usr/bin/env bash
# git_pull_subdirs.sh
# published as part of https://github.com/pConst/basic_verilog
# Konstantin Pavlov, pavlovconst@gmail.com
#
# Simple script to update all git repos in the current directory
#
# ===========================================================================
# !! CAUTION! All repos will be reset and all uncommitted changes lost !!
# ===========================================================================
eval $(ssh-agent)
ssh-add
pp=$(pwd)
#find . -maxdepth 1 -type d -print0 | while IFS= read -r -d '' fp; do
find . -type d -print0 | while IFS= read -r -d '' fp; do
cd "$fp"
if [ -d "./.git" ]; then
echo
echo "==================================================================="
echo "Working in $fp"
echo "==================================================================="
git config --replace-all core.filemode false
#git reset --hard
git pull --recurse-submodules --all
#git submodule init
git submodule update --recursive
fi
cd "$pp"
done

13
scripts/make_kcpsm.sh Normal file
View File

@ -0,0 +1,13 @@
#! /usr/bin/env bash
# ------------------------------------------------------------------------------
# make_kcpsm.sh
# published as part of https://github.com/pConst/basic_verilog
# Konstantin Pavlov, pavlovconst@gmail.com
# ------------------------------------------------------------------------------
#
# Use this file to assemble KCPSM memory files from .psm sources
wine kcpsm6.exe main_psm.psm

View File

@ -1,21 +0,0 @@
#! /usr/bin/env bash
# update_git_repos.sh
# Konstantin Pavlov, pavlovconst@gmail.com
#
# Simple script to update all git repos in the current directory
#
# ===========================================================================
# !! CAUTION! All repos will be reset and all uncommitted changes lost !!
# ===========================================================================
#
# see git_pull_subdirs.bat for mode convinient and clever script variant
#
export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
eval $(ssh-agent)
ssh-add
find . -type d -exec echo {} ' ' \; -exec git -C {} reset --hard \;
find . -type d -exec echo {} ' ' \; -exec git -C {} pull --recurse-submodules --all \;