Skip to content

Commit

Permalink
Disabled snapshot label
Browse files Browse the repository at this point in the history
  • Loading branch information
snqzspg authored Jul 24, 2022
1 parent 3e7d9ba commit 10daf05
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ W_SOUND_LINKERS = -L./pa/lib/.libs -I./pa/include -lportaudio

VERSION = 1.1
BUILD = 202207231608
IS_SNAPSHOT=1
IS_SNAPSHOT=0

DVERSION_FLAGS = -DVERSION=\"$(VERSION)\"
DBUILD_FLAGS = -DBUILD=\"$(BUILD)\"
Expand Down Expand Up @@ -458,4 +458,4 @@ clean_$(RUN_TESTS_SCRIPT_FILE):
$(call rmiexist,$(@:clean_%=../%))

clean_$(PA_MAC_DYLIB):
$(call rmiexist,$(PA_MAC_DYLIB_DEST))
$(call rmiexist,$(PA_MAC_DYLIB_DEST))
2 changes: 1 addition & 1 deletion src/build_sorts.bash
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ gcc_cmd=gcc
while read i; do
echo Building $i.c;
# "$gcc_cmd" -Wall -O2 -DUSE_ANSI_CLEAR terminal_visualiser.c "$i.c" -o "../$i" -lm;
"$gcc_cmd" -Wall -O2 -DNO_NCURSES -DVERSION=\"1.1\" -DBUILD=\"202207231608\" -DIS_SNAPSHOT=1 terminal_visualiser.c helper/precise_and_acc_time.c helper/beep_log.c helper/anti_quicksort.c helper/ioext.c helper/triangular_input.c helper/smooth_heapify.c "$i.c" -o "../$i" -lm;
"$gcc_cmd" -Wall -O2 -DNO_NCURSES -DVERSION=\"1.1\" -DBUILD=\"202207231608\" -DIS_SNAPSHOT=0 terminal_visualiser.c helper/precise_and_acc_time.c helper/beep_log.c helper/anti_quicksort.c helper/ioext.c helper/triangular_input.c helper/smooth_heapify.c "$i.c" -o "../$i" -lm;
done < "build_list.txt";
mkdir -p ../sounds;
"$gcc_cmd" -Wall -O2 make_sound.c -o ../sounds/make_wav -lm;
2 changes: 1 addition & 1 deletion src/build_sorts.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ echo.

for /f "usebackq delims=" %%i in (build_list.txt) do (
echo Building %%i.c
"%gcc_cmd%" -Wall -O2 -DDEFAULT_DIS_DELAY=10 -DACCOUNT_PRINT_LEN -DPRINT_TIME_W_O_DELAY=0 -DVERSION="""1.1""" -DBUILD="""202207231608""" -DIS_SNAPSHOT=1 terminal_visualiser.c helper/precise_and_acc_time.c helper/beep_log.c helper/anti_quicksort.c helper/ioext.c helper/triangular_input.c helper/smooth_heapify.c "%%i.c" -o "..\%%i"
"%gcc_cmd%" -Wall -O2 -DDEFAULT_DIS_DELAY=10 -DACCOUNT_PRINT_LEN -DPRINT_TIME_W_O_DELAY=0 -DVERSION="""1.1""" -DBUILD="""202207231608""" -DIS_SNAPSHOT=0 terminal_visualiser.c helper/precise_and_acc_time.c helper/beep_log.c helper/anti_quicksort.c helper/ioext.c helper/triangular_input.c helper/smooth_heapify.c "%%i.c" -o "..\%%i"
@REM "%gcc_cmd%" -Wall -O2 terminal_visualiser.c "%%i.c" -o "..\%%i"
)
mkdir ..\sounds
Expand Down
2 changes: 1 addition & 1 deletion src/build_sorts_ncurses.bash
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ gcc_cmd=gcc
while read i; do
echo Building $i.c;
# "$gcc_cmd" -Wall -O2 -DUSE_ANSI_CLEAR terminal_visualiser.c "$i.c" -o "../$i" -lm;
"$gcc_cmd" -Wall -O2 -DVERSION=\"1.1\" -DBUILD=\"202207231608\" -DIS_SNAPSHOT=1 terminal_visualiser.c helper/precise_and_acc_time.c helper/beep_log.c helper/ioext.c helper/triangular_input.c helper/smooth_heapify.c "$i.c" -o "../$i" -lm -lcurses;
"$gcc_cmd" -Wall -O2 -DVERSION=\"1.1\" -DBUILD=\"202207231608\" -DIS_SNAPSHOT=0 terminal_visualiser.c helper/precise_and_acc_time.c helper/beep_log.c helper/ioext.c helper/triangular_input.c helper/smooth_heapify.c "$i.c" -o "../$i" -lm -lcurses;
done < "build_list.txt";
mkdir -p ../sounds;
"$gcc_cmd" -Wall -O2 make_sound.c -o ../sounds/make_wav -lm;
2 changes: 1 addition & 1 deletion src/build_sorts_with_sound.bash
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ then
while read i; do
echo Building $i.c;
# "$gcc_cmd" -Wall -O2 -DUSE_ANSI_CLEAR terminal_visualiser.c "$i.c" -o "../$i" -lm;
"$gcc_cmd" -Wall -O2 -DNO_NCURSES -DPA_INSTALLED -DVERSION=\"1.1\" -DBUILD=\"202207231608\" -DIS_SNAPSHOT=1 terminal_visualiser.c helper/precise_and_acc_time.c helper/beep_log.c helper/sound_player.c helper/anti_quicksort.c helper/ioext.c helper/triangular_input.c helper/smooth_heapify.c "$i.c" -o "../$i" -L./pa/lib/.libs -I./pa/include -lm -lportaudio;
"$gcc_cmd" -Wall -O2 -DNO_NCURSES -DPA_INSTALLED -DVERSION=\"1.1\" -DBUILD=\"202207231608\" -DIS_SNAPSHOT=0 terminal_visualiser.c helper/precise_and_acc_time.c helper/beep_log.c helper/sound_player.c helper/anti_quicksort.c helper/ioext.c helper/triangular_input.c helper/smooth_heapify.c "$i.c" -o "../$i" -L./pa/lib/.libs -I./pa/include -lm -lportaudio;
done < "build_list.txt";
mkdir -p ../sounds;
"$gcc_cmd" -Wall -O2 make_sound.c -o ../sounds/make_wav -lm;
Expand Down
2 changes: 1 addition & 1 deletion src/build_sorts_with_sound.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if not exist "pa\lib\.libs\libportaudio.dll.a" goto NO_LIBPA

for /f "usebackq delims=" %%i in (build_list.txt) do (
echo Building %%i.c
"%gcc_cmd%" -Wall -O2 -DDEFAULT_DIS_DELAY=10 -DACCOUNT_PRINT_LEN -DPRINT_TIME_W_O_DELAY=0 -DPA_INSTALLED -DVERSION="""1.1""" -DBUILD="""202207231608""" -DIS_SNAPSHOT=1 terminal_visualiser.c helper/precise_and_acc_time.c helper/beep_log.c helper/sound_player.c helper/anti_quicksort.c helper/ioext.c helper/triangular_input.c helper/smooth_heapify.c "%%i.c" -o "..\%%i" -L./pa/lib/.libs -I./pa/include -lportaudio
"%gcc_cmd%" -Wall -O2 -DDEFAULT_DIS_DELAY=10 -DACCOUNT_PRINT_LEN -DPRINT_TIME_W_O_DELAY=0 -DPA_INSTALLED -DVERSION="""1.1""" -DBUILD="""202207231608""" -DIS_SNAPSHOT=0 terminal_visualiser.c helper/precise_and_acc_time.c helper/beep_log.c helper/sound_player.c helper/anti_quicksort.c helper/ioext.c helper/triangular_input.c helper/smooth_heapify.c "%%i.c" -o "..\%%i" -L./pa/lib/.libs -I./pa/include -lportaudio
@REM "%gcc_cmd%" -Wall -O2 terminal_visualiser.c "%%i.c" -o "..\%%i"
)
mkdir ..\sounds
Expand Down

0 comments on commit 10daf05

Please sign in to comment.