-
Notifications
You must be signed in to change notification settings - Fork 1
CVS for TFT and W3Demo #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
basxto
wants to merge
6
commits into
jcfieldsdev:master
Choose a base branch
from
basxto:cvs
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Important for filesystems that are case sensitive
Author
|
Initially AI generated scripts, which I used: #!/bin/bash
#lst2listfilefix.sh
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <*.lst> <listfile.txt>"
exit 1
fi
lst_file="$1"
listfile="$2"
while IFS= read -r line; do
filename=$(echo "${line//\\/\\\\}" | tr -d '"' | tr -d '\r')
cmd="s/${filename}/${filename}/ig"
echo "${cmd}"
sed -i "$cmd" "${listfile}"
done < "$lst_file"#!/bin/bash
#cvs2listfile.sh
> listfile.txt
stack=("")
while [ ${#stack[@]} -gt 0 ]; do
d="${stack[0]}"
stack=("${stack[@]:1}")
if [ -z "$d" ]; then
cvsdir="CVS"
else
cvsdir="$d/CVS"
fi
if [ ! -d "$cvsdir" ]; then
continue
fi
for admin_file in Entries{,.Log,.Backup,.Static} Root Repository Tag Notify{,.tmp} Base Baserev{,.tmp} Template; do
path="$cvsdir/$admin_file"
winpath=$(echo "$path" | tr '/' '\\')
echo "$winpath" >> listfile.txt
done
entries_file="$cvsdir/Entries"
if [ ! -f "$entries_file" ]; then
continue
fi
declare -a subdirs=()
while IFS= read -r line; do
[ -z "$line" ] && continue
[ "$line" = "D" ] && continue
if [[ "$line" == /* ]]; then
filename=$(echo "$line" | awk -F/ '{print $2}')
[ -z "$filename" ] && continue
full_path=$( [ -z "$d" ] && echo "$filename" || echo "$d/$filename" )
winpath=$(echo "$full_path" | tr '/' '\\')
echo "$winpath" >> listfile.txt
elif [[ "$line" == D/* ]]; then
dirname=$(echo "$line" | awk -F/ '{print $2}')
[ -z "$dirname" ] && continue
new_d=$( [ -z "$d" ] && echo "$dirname" || echo "$d/$dirname" )
subdirs+=("$new_d")
fi
done < "$entries_file"
if [ -z "$d" ]; then
search_path="."
else
search_path="$d"
fi
actual_dirs=""
for item in "$search_path"/*/; do
if [ -d "$item" ]; then
actual_dir=$(echo "$item" | sed 's/\/$//' | sed 's/^\.\///')
if [ -n "$actual_dir" ]; then
actual_dirs="$actual_dirs $actual_dir"
fi
fi
done
for actual_dir in $actual_dirs; do
subdirs+=("$actual_dir")
done
declare -A seen
declare -a unique_subdirs=()
for dir in "${subdirs[@]}"; do
if [[ -z "${seen[$dir]}" ]]; then
unique_subdirs+=("$dir")
seen[$dir]=1
fi
done
subdirs=("${unique_subdirs[@]}")
for ((i=${#subdirs[@]}-1; i>=0; i--)); do
stack=("${subdirs[i]}" "${stack[@]}")
done
doneThe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I added CVS files, extracted the directory and file names from them. They are included in TFT and most demos, but not all demos.
All W3Demos which I have are now 100%, including the one you likely used.
The TFT which I tested only has one file missing, but it’s not the one you used. The amount of files differs and it’s not the correct version. Please retest if you still have them around.
This adds the new folder
English\SetupDat\, but it looks like that is also in the German version. Some other localizations might have a different folder.SetupDat\DirectX End User EULA.txtis impossible to guess, but it was in the CVS data.